Every frame is a pure function of time.
effects still writes PNGs of any moments you name, so an agent can check its own work in a second instead of rendering the film.A native framework for making video from code. Scenes are plain procedures, Skia draws them on every core, and frames go straight to the encoder: cheap enough for an agent to render twice.




Browser-based renderers boot headless Chrome, run style, layout and paint, grab a screenshot and hand an image file to the encoder, once for every frame. effects compiles your scenes to a shared library and calls it from one thread per core.
Numbers from the machines this was built on: a 16-thread laptop and a 24-thread render box with an RTX 4000. For most films the encoder is the bottleneck, not the drawing.
The slow thing is SkSL on the CPU: a full-screen shader costs seconds per frame unless it is drawn small and scaled up.
What things cost →effects still writes PNGs of any moments you name, so an agent can check its own work in a second instead of rendering the film.package spot
import fx "effects:fx"
SCENES := [?]fx.Scene {
{name = "intro", start = 0, dur = 3.4, draw = intro},
}
@(export)
effects_video :: proc() -> ^fx.Video {
return fx.video({name = "Spot", scenes = SCENES[:]})
}
intro :: proc(s: fx.Shot) {
fx.backdrop(.Night)
rise := 30 * (1 - fx.ep(s.t, s.start, s.start + 0.6))
if fx.group({o = fx.fade(s), y = rise}) {
fx.caption("No browser in the loop.", {160, 440}, 112, fx.theme.nt)
}
fx.grain(0.035)
}$ effects still projects/spot 0.4 2.5 # PNGs of two moments
$ effects bench projects/spot # ms per frame, one thread
$ effects beats song.wav # hits, tempo and drops, to cut to
$ effects render projects/spot # → .effects/spot.mp4The reference runs the real library in the page: the same fx code, compiled to WebAssembly and drawing through Skia on your GPU. Drag the playhead, change an argument, read the code that made the frame.

landing_hello :: proc(s: fx.Shot) {
fx.backdrop(.Night)
rise := 30 * (1 - fx.ep(s.t, s.start, s.start + 0.6))
split := knob("rgb_split", 6, 0, 24)
if fx.group({o = fx.fade(s), y = rise, post = fx.rgb_split(split)}) {
fx.eyebrow("Scene 01 / intro", {160, 360}, fx.theme.na)
fx.caption("No browser\nin the loop.", {160, 420}, 170, fx.theme.nt)
}
fx.vignette(0.35)
fx.grain(0.035)
}Turning time into motion: progress, eases, springs, staggers, keyframes and repeatable randomness.
prog · ep · win · spring · stagger · typed · keysShapes, paints and gradients, paths, text, icons, images, baked layers and raw shaders, all drawn immediately onto the frame.
rect · circle · text · image · linear · trimmed · bakeA group moves, scales, tilts, fades, blurs, grades, blends, clips and filters everything drawn in its scope; frosted blurs what is behind a rect.
group · frosted · tilt · blur · grade · blendThe basic types everything else is written in: 0xAARRGGBB colors, Vec2 and Rect with their helpers, and the 1920×1080 stage a video is designed on.
rgb · alpha · mix · inset · contain · stageThe Theme struct and its default LIERMANN palette, the two bundled font families, registering your own fonts, and the built-in icon set.
theme · sans · mono · caps · font · iconPixel filters over what a group draws (color splits, glitches, halftone, dither, lenses, shockwaves, your own SkSL) and bloom with anamorphic streaks.
rgb_split · glitch · halftone · dither · lens · glowPictures computed per pixel in SkSL: your own with shader and shader_scaled, and the ready-made nebula, orb and tunnel.
shader_scaled · nebula · orb · tunnelA camera, a projection and a few drawing procedures for point clouds, lines in space and depth of field.
Cam · project · line3 · bokeh · fib_sphereText animated letter by letter: staggered arrivals with letters, decoding text with scramble, and glyphs for effects of your own.
letters · scramble · glyphsBeats as lists of times, and what to hang on them: pulses, shake, punch-ins, flashes, letterboxing, transitions between scenes, speed ramps and slammed titles.
beat · pulse · shake · transition · ramp · slamA small flexbox for interface mockups: rows and columns that size themselves from their content, with every element animatable and findable afterwards.
layout · box · item · txt · rect_ofReady-made pieces for product videos: backdrops, grain, windows and phones, app chrome, pills, buttons, tables, charts, a pointer, a highlight and headlines that arrive word by word.
window · phone · button · kpi · cursor · grainSounds on the timeline, how they are changed and mixed, and reading hits, drops and a spectrum out of audio files.
Sound · onsets · drops · spectrumSounds made by code: five one-shot effects, and a small offline studio of synth notes, drums, buses and effects for whole scores.
play · kick · clap · duck · reverb · limitDrawing frames of video files like images, how they are decoded, and what makes that fast or slow.
footage(file, t, r, focus, zoom)Word timings of a spoken track from a timeline.json: scenes that take their length from it and pictures cut to single words.
W · WE · SC · vo_text$ git clone https://github.com/fipso/effects && cd effects
$ ./build.sh # shim + CLI + editor → build/
$ build/effects-edit projects/fable # preview, timeline, hot reload
$ build/effects render projects/fable # → projects/fable/.effects/fable.mp4