Monday, December 16, 2013
Bethany Spinning
// just type here
// and click "save" when your done
int i = 0;
void setup()
{
size(400,400);
smooth();
background(9,237,135);
frameRate(10);
}
void draw()
{
pushMatrix();
fill(30,200,10,10);
//stroke(200, 10, 10);
strokeWeight(2);
translate(sin(radians(i)) * (i / 2) + (width / 2), cos(radians(i)) * (i / 2) + (height/2));
rotate(i);
scale(i);
strokeWeight(0.4);
shape();
circle();
popMatrix();
i++;
}
void shape() {
line(1,1,1,5);
line(1,5,3,5);
line(3,5,3,3);
line(3,3,1,3);
line(1,3,3,1);
}
void circle() {
line(4,1,4,5);
line(4,5,6,5);
line(6,5,6,1);
line(6,1,4,1);
}
void mousePressed()
{
background(255);
i=0;
}
// and click "save" when your done
int i = 0;
void setup()
{
size(400,400);
smooth();
background(9,237,135);
frameRate(10);
}
void draw()
{
pushMatrix();
fill(30,200,10,10);
//stroke(200, 10, 10);
strokeWeight(2);
translate(sin(radians(i)) * (i / 2) + (width / 2), cos(radians(i)) * (i / 2) + (height/2));
rotate(i);
scale(i);
strokeWeight(0.4);
shape();
circle();
popMatrix();
i++;
}
void shape() {
line(1,1,1,5);
line(1,5,3,5);
line(3,5,3,3);
line(3,3,1,3);
line(1,3,3,1);
}
void circle() {
line(4,1,4,5);
line(4,5,6,5);
line(6,5,6,1);
line(6,1,4,1);
}
void mousePressed()
{
background(255);
i=0;
}
info
submitted by:
technocampsuogviews: 70
Spiralling out of control example Newport University

comments

Add a comment: