PROCESSING__ practicing integers and transactions (studio III – snail thoughts)

IMAGES::

espiral010 espiral038 espiral051 espiral059 espiral078 espiral135 espiral158 espiral203 espiral215 espiral242 espiral259

VIDEO::

CODE::

void setup(){
size(400,400);
background(255);
colorMode(HSB,100);
}

int rot=0;
int sq=0;
int h=0;

void draw(){
translate(width/2, height/2);
rotate(rot);
fill(h,100,100,25);
rect(0,0,sq,sq);
rot=rot+20;
sq=(sq+1)%140;
h=(h+1)%100;
fill(h,100,100,25);
rect(width/3,height/3,sq,sq);
rot=rot+200;
sq=(sq+1)%140;
h=(h+1)%100;

}

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s