Flower Object Communication

Screen Shot 2561-10-09 at 10.24.16.png

I have always wanted to make spirographs so I experimented with the equations. I turned these into objects with various properties including sizes, numbers of petals and shapes. I used the array function to duplicate the flowers.

I tried to make the objects communicate in a way that if one is smaller than 100 pixels, make every other one ‘red’. However, I could not get this to work in time and only those which are smaller than 100 pixels would turn red.

The sketch: https://editor.p5js.org/nt1475@nyu.edu/sketches/rk9nyrKcm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s