[processing width=”480″ height=”120″ file=”http://www.ashleyelsdon.com/wp-content/uploads/2012/03/sort_of_draw_a_line.jar” method=”inline”]Load the applet[/processing]
Another bit of processing, this time drawing a little line on the screen. If you’re interested, here’s the code for the sketch:
void setup() {
size(480, 120);
strokeWeight(4);
smooth();
stroke(0, 120);
}
void draw() {
line(mouseX, mouseY, pmouseX, pmouseY);
}