Each patch has a certain pcolor (think pcolor = P_atch_COLOR). Each patch has an x coordinate (pxcor) and a y coordinate (pycor). TO checkerBoard ask patches [ ifelse remainder (pxcor + pycor) 2 = 0 [ set pcolor white ] [ set pcolor yellow ] ] END
Study it. Try it out. Eight Turtles, but the odd turtles (1, 3, 5, 7) walk farther than the even turtles (0, 2, 4, and 6).
ifelse remainder who 2 = 0 [ slowWalk 8 ;; Even turtles move 8 units ] [ slowWalk sqrt (8 ^ 2 + 8 ^ 2) ;; Odd turtles move square root of 128 units ] ;; Odd turtle move about 11.3 units 11.31371 ^ 2 = 128.0000339641 8 squared plus 8 squared = 64 + 64 = 128 square root (128) = 11.31371
Twinkle Twinkle Little Star song consists of only quarter notes and half notes. It starts on note C, which is 60 for NetLogo.
60, a deer, a female deer. 62, a drop of golden sun. 64, a name I call myself 65, a long, long way to run 67, a needle pulling thread 69, a note to follow 67 71, I drink with jam and bread That will bring us back to 72...oh oh ohThe magificent seven: Do-re-mi-fa-so-la-ti.
When you read you begin with A-B-C When you count you begin with 1-2-3 When you sing you begin with do-re-mi
How to use a SLIDER for MUSIC TEMPO.