These are Apas Cloud services: they run on our servers for a signed-in member. The examples below are shown already made; sign in to edit and run your own.
animate Apas Cloud
An animation: calls f(t) for n values of t from tmin to tmax, each call drawing one frame with draw()/text()/... (only the finished animation shows, not each frame). Set the view first with xrange()/yrange() -- inside quiet { } so they show nothing themselves -- so it stays still.
tmin (number) --
tmax (number) --
n (number) -- frames
f (function) -- f(t) draws one frame
sketch Apas Cloud
Frame-by-frame animation with memory, like Processing: setup() runs once -- what it draws is the background of every frame, and what it returns is the starting state -- then draw(i, state) draws frame i (0 to n-1) and returns the next state. sketch(n, draw) with draw(i) alone works too. An optional last argument sets the speed in frames per second (1-60).
n (number) -- frames
setup (function) -- optional
draw (function) -- draw(i) or draw(i, state)
fps (number) -- optional