Wednesday, June 30, 2010
Codebar Drawing Tool
void setup() {
size(800, 500);
background(255);
}
void draw() {
stroke(0);
strokeWeight(40);
if(mousePressed) {
line(mouseX, mouseY, pmouseX, pmouseY);
}
}
size(800, 500);
background(255);
}
void draw() {
stroke(0);
strokeWeight(40);
if(mousePressed) {
line(mouseX, mouseY, pmouseX, pmouseY);
}
}
info
submitted by:
ric_lmcviews: 38
This is probably the simplest drawing tool you can do. Try adding what is inside the void draw function into other sketches and see what happens.
comments

Add a comment: