Created
November 17, 2013 22:16
-
-
Save avhm/7518977 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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