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
float motion = 0.0; void setup(){ size(420,400); background(0); } void draw(){ rect(0,0,width, height); fill(0,20); float motion = 0.0; motion = (motion + 0.3)%height; smooth(); int box_space = 20; int margin = 20; motion = (motion + 0.3)%height; for(int i = margin; i <400-margin; i += box_space){ for(int j = margin; j <400-margin; j += box_space) { line(j,mouseY,mouseX,i); strokeWeight(motion); stroke(200); } } }
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
This is a simple grid array which can be affected by cursor movement.