Courses‎ > ‎Intro to CS - Half Year‎ > ‎Dyrland-Weaver‎ > ‎Work‎ > ‎

Work 34: 12/20

posted Dec 20, 2018, 11:44 AM by JonAlf Dyrland-Weaver   [ updated Dec 20, 2018, 12:28 PM ]
Make the following NetLogo program:

Procedures:
  • Setup
    • Clear the screen
    • imports an image
    • creates 100 turtles placed randomly around the world
  • melt
    • have every patch change its color to the color of one of its neighbors.
    • attach this to a forever button
  • fade
    • have every patch decrease its color by .1, but if a color reaches black (any multiple of 10), it should stay there and not go down into the next color band.
    • attach this to a forever button 
  • scratch
    • have turtles rotate randomly and put their pens down
    • have turtles become the color of the patch they are on
    • have turtles move forward an amount based on a slider
      • set the slider to go from 0 to 3 in .1 increments.
    • attach this to a forever button
submit this as netlogo1_review
Comments