twinle twinkle little star

twinle twinkle little star preview image

1 collaborator

Default-person Qi Chen (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.2.0 • Viewed 49 times • Downloaded 5 times • Run 0 times
Download the 'twinle twinkle little star' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

turtles-own [mycolor]
breed [moons moon]
breed [stars star]

to setup
ca
  create-stars 50 [
  setxy random-xcor random-ycor
    set shape "star"
    set color one-of [green red blue pink sky lime]
    set mycolor  [color] of self
  ]

  create-moons 1 [
    setxy 12 15
    set color yellow
    set shape "moon"
    set size size + 3
  ]
end 

to go
twinkle
end 

to twinkle
  ask stars [
    ifelse color =  white [
      set color mycolor
    ][
    set color white
    ]
  ]
end 

There is only one version of this model, created over 1 year ago by Qi Chen.

Attached files

File Type Description Last updated
twinle twinkle little star.png preview Preview for 'twinle twinkle little star' over 1 year ago, by Qi Chen Download

This model does not have any ancestors.

This model does not have any descendants.