Skip to content

Instantly share code, notes, and snippets.

@loktar00
Created June 7, 2012 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loktar00/2885768 to your computer and use it in GitHub Desktop.
Save loktar00/2885768 to your computer and use it in GitHub Desktop.
Metaball part 1
for(var i = 0; i < 50; i++){
var x = Math.random()*width,
y = Math.random()*height,
vx = (Math.random()*8)-4,
vy = (Math.random()*8)-4,
size = Math.floor(Math.random()*60)+60;
points.push({x:x,y:y,vx:vx,vy:vy, size:size});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment