g.js — graphical objects for JavaScript

Animation

Animation in g.js is based on expressions based on the current time or frame.

Current time

frame — get the current frame number

Waveforms

sineWave / squareWave / triangleWave — generate different wave forms