Stop
Continue
Go
/* Path Example This example uses motion to mark 50 steps along a path with gravity. In this example, we use a for loop instead of the animation loop to draw. We also use fillrect to fill a pixel rather than drawing a circle. */ function setup(){ //no special setup needed } function draw(){ var x,y; //coordinates var vx,vy; //velocity var ax,ay; //acceleration var i; //index //random position x=random()*width; y=random()*height; //random velocity - but vy is going up vx=random(); vy=-random(); //a little bit of gravity ax=0; ay=.01; //draw 50 steps of path for (i=0;i<50;i++){ fillrect(x,y,1,1); x=x+vx; y=y+vy; vx=vx+ax; vy=vy+ay; } }
default
3024-day
3024-night
ambiance
base16-dark
base16-light
blackboard
cobalt
eclipse
elegant
erlang-dark
lesser-dark
mbo
mdn-like
midnight
monokai
neat
night
paraiso-dark
paraiso-light
pastel-on-dark
rubyblue
solarized dark
solarized light
the-matrix
tomorrow-night-eighties
twilight
vibrant-ink
xq-dark
xq-light