Skip to content

Instantly share code, notes, and snippets.

@avhm
Created November 17, 2013 22:16
Show Gist options
  • Save avhm/7518977 to your computer and use it in GitHub Desktop.
Save avhm/7518977 to your computer and use it in GitHub Desktop.
function circles(x,y,r,g,b,a,l){
if(count % ~~(rand(1))){
return;
}
var scale1 = Math.pow(r, 3) / slider1;
var scale2 = Math.pow(g, 3) / slider2;
ctx.fillStyle = rgba(r,g,b,slider4);
ctx.moveTo(x,y);
ctx.beginPath();
ctx.arc(x, y+scale2, scale1, 0, Math.PI*2, false);
ctx.closePath();
ctx.fill();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment