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);
  }
}

info info

submitted by: ric_lmc
views: 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.

Tags:

comments comment

loading loading...

 

Add a comment: