mouse example

No preview image

1 collaborator

Screen_shot_2021-10-29_at_8.40.47_am Corey Brady (Author)

Tags

(This model has yet to be categorized with any tags)
Model group SingaporeSST | Visible to everyone | Changeable by everyone
Model was written in NetLogo 5.0RC10 • Viewed 170 times • Downloaded 19 times • Run 0 times
Download the 'mouse example' 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



patches-own [ clock ]

to setup
  ca
  reset-ticks
  ask patches [ set clock 0 ]
end 

to go
  every .02
  [
  ask patches [ if ticks - clock > 50  [ set pcolor black ] ]
  tick
  ]
end 

to monitor-mouse
  every .01
  [
  if mouse-down? 
  [
    ask one-of patches [ set pcolor white set clock ticks]
  ]
  ]
end 



There is only one version of this model, created over 12 years ago by Corey Brady.

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.