Processing 4 March 2015

In Processing, we created a ‘hello world’ piece that used gradients, text and shapes. Adding a (random) tag changes the amount of ellipses height and width.

void setup() {
size(600, 500);
background(255);
noStroke();
noLoop();
}

void draw() {
for(int j=0; j<600; j++){
stroke(0,0,j);
line(0,j,600,j);
fill(240,231,136);
ellipse(200, 200, 50, 50);
fill(255);
text(“hello world”, 300, 350);
}

for (int i = 0; i<200; i++) {

fill(255);
ellipse(random(width), random(height), 5, 5);
}
}
Hello World

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