home
|
featured sketchers
|
gallery
write a sketch
|
community
|
Copy sketch
Write your sketch here
Need inspiration? Play with some examples
here
or check the Processing language
reference
int randX, randY; int randX2, randY2; void setup (){ background(0); size (800, 400); frameRate(12); } void draw() { randX = (int) random(200,600); randY = (int) random(100,300); randX2 = (int) random(200,600); randY2 = (int) random(100,300); noStroke(); fill(255,20); rect(0,0,width, height); smooth(); stroke(0); strokeWeight(1); //fill(255, 120); quad(mouseX, mouseY, pmouseX, pmouseY, randX, randY, randX2, randY2); //line(mouseX, mouseY, pmouseX, pmouseY); //line(mouseX, mouseY , randX, randY); //line(randX, randY, pmouseX, pmouseY); }
Sketches you submit on sketchPatch will be licensed under the
Creative Commons Attribution 3.0 Unported License
. If you upload code based on other people's work, please check the licence compatibility.
Title
Tags
Publish
let other people see your sketch
Your comments about the sketch