Toggle navigation
Sign Up
Log In
Explore
Works
Folders
Tools
Collections
Artists
Groups
Groups
Topics
Tasks
Tasks
Jobs
Teams
Jobs
Recommendation
More Effects...
JS
function setup() { createCanvas(windowWidth,windowHeight) create() } const rand = () => (random() - .5) * 2; const create = () => { var p = new PoissonDiskSampling({ shape: [width, height], minDistance: random(13,20), maxDistance: random(45,55), tries: 10 }); var points = p.fill(); stroke("hsl(0,90%,20%)"); points.forEach((point,i) => { fill(`hsl(0,90%,${40 * (i/points.length)}%)`); push() translate(point) let rounds = floor(random()*3) + 3; for(var r = rounds; r > 0; r--) { const x = point[0] + rand(); const y = point[1] + rand(); ellipse(x,y,r*15,r*15) } pop() }) } function windowResized() { resizeCanvas(windowWidth, windowHeight); create() } function mouseClicked () { create() } function touchEnded () { create() }
CSS
html, body { margin: 0; padding: 0; } canvas { width: 500px; height: 500px; max-width: 100vw; max-height: 100vh; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 2px solid #8DA5B2; }
HTML
Join Effecthub.com
Working with Global Gaming Artists and Developers!
Login
Sign Up
Or Login with Your Email Address:
Email
Password
Remember
Or Sign Up with Your Email Address:
Your Email
This field must contain a valid email
Set Password
Password should be at least 1 character
Stay informed via email