Skip to content

Instantly share code, notes, and snippets.

@gosub
Created April 3, 2019 17:05
Show Gist options
  • Save gosub/07530abc10cae09495d51b63d621723f to your computer and use it in GitHub Desktop.
Save gosub/07530abc10cae09495d51b63d621723f to your computer and use it in GitHub Desktop.
Phone Wallpaper Sketch 2019-04-03
// wallpaper sketch 2019-04-03
// by Giampaolo Guiducci
// [email protected]
// https://github.com/gosub
// render with: editor.p5js.org
function setup() {
createCanvas(1080, 1920);
background(30);
//noStroke();
stroke(255, 80);
for(var start=width/15; start<width; start += width/15) {
var oldx = start, oldy=0;
for(var y=0; y<height; y+=2) {
var x = start + (noise(start, y) - 0.5) * pow(sin(y/height * PI), 8)* 30;
line(oldx, oldy, x, y);
oldx = x;
oldy = y;
}
}
save("wallpaper_sketch_2019-04-03.png");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment