Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

tomsoderlund/programmatic-animations

Repository files navigation

Programmatic Animations

🆕 See also: https://programmatic-animations.tomorroworld.com/ (touch-art)

Make animations with canvas and JavaScript, and export as video.

Export as WebM video files* and then use e.g. VLC Media Player to convert WebM to MP4 (File → Convert/Stream, MP4/MOV and MPEG-4 format).
*Not supported in Safari

Uses CCapture.js for capturing video frames.

Examples

  1. Basic: drawing lines
    Example
  2. Basic physics using Matter.js
    Example
  3. Advanced animation using oCanvas
    Example
  4. Mouse position as input
    Example
  5. Image data
    Example
  6. Image data 2: lines
    Example
  7. City cars
    Example
  8. Using P5.js

Share your work!

If you make your own animations based on these examples, please share with the hashtag #programmaticanimations.

Learn more

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.