Skip to content

Instantly share code, notes, and snippets.

@SLOLNE
Created February 10, 2016 19:23
Show Gist options
  • Save SLOLNE/1bbfed33d6c66c5bfd4e to your computer and use it in GitHub Desktop.
Save SLOLNE/1bbfed33d6c66c5bfd4e to your computer and use it in GitHub Desktop.
void setup()
got this from one of the examples, likes the thumbnail.
I added more points
{
size(600, 600); //size of canvas
background(192, 64, 10);//background colour= orange
}
void draw() {//opens draw loop which runs on loop
stroke(10, 120);// stroke
line(200, 300, mouseX, mouseY);//line start point x,y coords and then mouse x and mousey
line(400, 200, mouseX, mouseY);//'' ''
line(200, 400, mouseX, mouseY);//''''
line(400, 200, mouseX, mouseY);//''''
///
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment