Spore 2

This example is for Processing (BETA) version 154+. If you have a previous version, use the examples included with your software. If you see any errors or have comments, please let us know.

Continuous Lines.

Click and drag the mouse to draw a line.

 
void setup() {
  size(640, 200);
  background(102);
}

void draw() {
  stroke(255);
  if(mousePressed) {
    line(mouseX, mouseY, pmouseX, pmouseY);
  }
}