Simple Drawing And Mouse Following Example
// The setup function will only run once, at the start of the program
void setup() {
  size(200, 200);
  // background(192, 64, 0);
// The draw function will run over and over, as long as the program runs.
void draw() {
  drawing the background here and not in setup(), clears the canvas,
  so you don't see any trailing lines.
  background(192, 64, 0);
  line(100, 25, mouseX, mouseY);
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License