PROCESSING__ practicing integers and random (studio I – hello world)

IMAGES::

helloWorld002 helloWorld026 helloWorld050 helloWorld182

VIDEO::

CODE::


void setup(){
size(800,600);
frameRate(25);
background(300,50,50);

}
int x=50;
int y=50;
void draw(){
println(“hello world!”);
strokeWeight(2);
stroke(random(0,255));

line(width/2,height/2, random(0,width), random(0,height));strokeWeight(0);

strokeWeight(11);
fill(255);

text(“hello world”,int(random(x)),int(random(y)));

x=(x+10)%height;
y=(x+10)%height;

}

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