ISTA 301: Blog #6
1) Processing static is when the program runs only ones. Active modes are running the project continuously nonstop.
2) I would change the “for (int i = 0; i < 20; i= i+1)” to “for (int i = 0; i< 100; i = i+1) in order to draw 100 ellipses on the screen. I would make each ellipse a random color by running fill(255,255,0) to fill the ellipses with the color yellow.
Code for the sketch:
size(400,400);
float x;
float y;
fill(255,255,0);
for (int i = 0; i < 100; i = i+1) {
x = random(360);
y = random(360);
ellipse(x+20, y+20, 20,20);
}
3)
Code for the Sketch:
void setup(){
size(400,350);
background(127,0,0);
smooth();
noFill();
strokeWeight(5);
//1st pink circles
stroke(255,200,200);
int x = 8;
while(x < 250)
{
ellipse(600 - 400, 250-50, x, x);
ellipse(400 + 400, 250-50, x, x);
x = x + 30;
}
//2nd white circles
stroke(255);
int y = 8;
while(y < 250)
{
ellipse(600 - 400, 250-50, y, y);
ellipse(400 + 400, 250-50, y, y);
y = y + 27;
}
}













