Spiro-Art

Spiro-Art preview image

1 collaborator

Img_3285 Nich Martin (Author)

Tags

art 

Tagged by Nich Martin over 3 years ago

Visible to everyone | Changeable by the author
Model was written in NetLogo 6.2.0 • Viewed 203 times • Downloaded 5 times • Run 0 times
Download the 'Spiro-Art' modelDownload this modelEmbed this model

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


WHAT IS IT?

An art program for my kids.

HOW IT WORKS

Agents called Artists move through canvas, leaving lines along their path, creating aesthetic designs.

HOW TO USE IT

Choose parameters and run the model to create spirograph like images.

num-of-artists

Controls number of Artists .

turn

Controls the angle (in degrees) Artists turn each tick.

walk

Controls distance Artists move each tick.

color-slide-1

Controls Artist color if multi-color? is off. Contols first Artist if multi-color? is on.

time

Controls number of ticks before model stops.

center?

Determines whether Artists start at center of canvas or at a random location.

movement?

Determines order of operations for walking and turning. If on, Artists turn then walk. If off, Artists walk then turn.

multi-color?

Determines whether Artists are one or many colors.

infinite?

Turns off tick limit.

clear artists

Removes Artists from canvas while maintaining lines.

THINGS TO TRY

Adjust the walk slider to larger values to see the wrap-around effect.

Adjust the turn slider to special angles (e.g., 45, 90, 180) hit go and increase or decrease turn by one or two units.

EXTENDING THE MODEL

Try adding operations to the to move code to create loops, stars, etc. to the Artists movements.

CREDITS AND REFERENCES

CREATIVE COMMONS LICENSE This code is distributed by Nich Martin under a Creative Commons License: Attribution-ShareAlike 4.0 International (CC 4.0) https://creativecommons.org/licenses/by/4.0/

Comments and Questions

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

Click to Run Model

breed[artists artist]

to setup
  clear-all
  setup-artists
  reset-ticks
end 

to setup-artists
  create-artists num-of-artists
  ifelse center?
  [ask artists [setxy 0 0] ]
  [ask artists [setxy random-xcor random-ycor]]
  ifelse multi-color?
  [
    ask turtles
    [
      set shape "triangle"
    set size 1
    ]
    ask n-of (num-of-artists / 2) artists
  [
    set color color-slide-1 + 5

  ]
  ]
  [
    ask turtles
    [
      set color color-slide-1 + 5
    set shape "triangle"
    set size 1
    ]
  ]
end 

to go
  ifelse infinite?
  [if ticks > 100000000000000  [stop]]
  [if ticks > time [stop]]
  ask artists
  [
    move
  ]
  tick
end 

to move
  ask artists
  [
    ifelse movement?
    [pen-down
    rt turn
      fd walk]
    [pen-down
      fd walk
      rt turn]
  ]
end 

There is only one version of this model, created over 3 years ago by Nich Martin.

Attached files

File Type Description Last updated
Spiro-Art.png preview Preview for 'Spiro-Art' over 3 years ago, by Nich Martin Download

This model does not have any ancestors.

This model does not have any descendants.