Work 19: 10/29

posted Oct 29, 2018, 12:37 PM by JonAlf Dyrland-Weaver
Write a NetLogo program with the following features:
  • Interface
    • A slider called numSides
      • Should start at 3 and go to a reasonable number (like 20)
    • A slider called sideLength
      • Should start at 1 and go to a reasonable number
    • A slider called angle
      • Should start at 0 and go to 360
    • For each slider, set the initial value to be something that makes sense, play around with the values to see what works well
    • Include buttons for each procedure listed below
  • Procedures
    • Setup
      • Clear the screen and make a turtle (you can add custom feature to the turtle if you wish)
    • regularGon
      • Should work like the regularGon procedure form the previous assignment.
      • Pass the numSides and sideLength slider values into this function when you make the button for it.
    • pattern
      • Should call regularGon and then turn right.
      • Pass the angle slider value into the function when you make the button for it.
      • Make the button for pattern a forever button! - see what happens
submit this as sliders
Comments