Download NetLogo 3.1.4 User Manual

Transcript
NetLogo 3.1.4 User Manual
show extract−hsb red
=> [0.0090 0.809 0.843]
show extract−hsb cyan
=> [0.5 0.571 0.769]
See also hsb, rgb, extract−rgb.
extract−rgb
extract−rgb color
Reports a list of three values in the range 0.0 to 1.0 representing the levels of red, green, and blue,
respectively, of the given NetLogo color in the range 0 to 140.
show extract−rgb red
=> [0.843 0.196 0.161]
show extract−rgb cyan
=> [0.329 0.769 0.769]
See also rgb, hsb, extract−hsb.
F
face
face agent
Set the caller's heading towards agent.
If wrapping is allowed by the topology and the wrapped distance (around the edges of the view) is
shorter than the on−screen distance, face will use the heading of the wrapped path.
If the caller and the agent are at the exact same position, the caller's heading won't change.
facexy
facexy number number
Set the caller's heading towards the point (x,y).
If wrapping is allowed by the topology and the wrapped distance (around the edges of the view) is
shorter than the on−screen distance and wrapping is allowed, facexy will use the heading of the
wrapped path.
If the caller is on the point (x,y), the caller's heading won't change.
Primitives Dictionary
213