Examples
These example animations show different parts of animating with smoothstep. You can also open them from File → Open in the app, or from Help → Welcome, where each one has a moving preview. If you change an example, save it to keep it as one of your own animations.
Showcase
- Wobbling mirror ball: a mirror ball, pulled into the shapes of spherical harmonics and left to spring back, reflecting a 360° photo.
- Menger sponge dissection: a Menger sponge, sliced open by a moving plane.
- Julia ring: a ring whose slices are the Julia sets along the edge of the Mandelbrot set's main cardioid, cut open to show them.
- Domain warping: fractal noise fed back into itself, like marbled paper.
- Kaleidoscope: a painting, mirrored into turning segments with polar coordinates.
- Glowing trails: dots that leave fading trails, drawn on top of the previous frame.
- Pokémon type battles: cells of the 18 Pokémon types fight their neighbours, and the type chart decides who wins. The Canvas2D layer draws the legend.
- Hypocycloids: circles rolling inside and outside a circle, tracing curves with the Canvas2D layer's drawing helpers.
- Bean machine: balls bounce down through pegs and pile up in a bell curve, simulated with planck.js in the Canvas2D layer.
- Hexagonal growth: one hexagon grows into a snowflake, as each empty cell with exactly one living neighbour comes alive.
- Truchet tiles: tiles that turn smoothly, rejoining into winding paths.
- Metaballs: blobs that melt into each other and pull apart, following the timeline.
Learn the basics
- Minimal animation
- Drawing a circle
- Fractals
- Using textures
- Text from a font: bouncing letters and a timer that counts the seconds, each character cut out of a font texture by its code
- Using the animation timeline
- 3D ray marching
- Stateful animations - iPrevFrame
- Ink in water: one buffer simulates flowing water, and a second carries ink along in it
- Drawing with the Canvas2D layer: JavaScript draws text, shapes, a picture, trails and a little physics over a shader, which reads the drawing to make it glow