Infographics

This is ment to show you some super basic things in processing, just to get you to the point where you can start playing, have fun!

I recommend typing it in yourself, but if you don't want to, here's the sketch.

void setup() {
size(600, 300);
background(#FFFFFF);
smooth();
}

void draw() {
background(#FFFFFF);

float lineLength = dist(width/2, height/2, mouseX, mouseY);
int lengthInt = int(lineLength);

line(width/2, height/2, mouseX, mouseY);

fill(#FF0000);
text(lengthInt, 20, 20);

noFill();
ellipse(width/2, height/2, lineLength * 2, lineLength * 2);
}

# vimeo.com/64775216 Uploaded 7,433 Plays 4 Comments

Follow

Infographics

yvonne101

Shout Box

Heads up: the shoutbox will be retiring soon. It’s tired of working, and can’t wait to relax. You can still send a message to the channel owner, though!

Browse This Channel

Channels are a simple, beautiful way to showcase and watch videos. Browse more Channels.