Generative Art through Agent Based Simulation

Agent-based simulation

Generative Art

Tarantula
Lion

NetLogo

NetLogo Model

Code

to setup
clear-all
make-turtles
reset-ticks
end
to go ask turtles [ let target one-of out-link-neighbors
if target != nobody [
face target
set pcolor color
let dist distance target
if dist > 1 [fd 1]
]
]
tick
endto make-turtles design1endto design1 create-turtles 4 [ set size 2 ]
layout-circle turtles max-pxcor - 1
ask turtle 0 [ set color green create-link-to turtle 1 ]
ask turtle 1 [ set color yellow create-link-to turtle 2]
ask turtle 2 [ set color orange create-link-to turtle 3]
ask turtle 3 [ set color blue create-link-to turtle 0]
endto design2 create-turtles 200 [ set size 4 ]
layout-circle turtles max-pxcor - 1
ask n-of 40 turtles [
create-link-to one-of other turtles [
set color red
]
]
end

Code explained

Art produced from first design

Art produced from second design

Creating better visuals using C

An algorithm designer and developer with a passion of building AI solutions to diverse problems. 2D game designer and developer and an avid lover of nature.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store