[effects]
Skia · Odin · ffmpeg. No Chrome.

Video as code.
No browser in the loop.

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.

fable60 s · 1080p60 · no footagesource →
~2 msper frame of interface, text and layers, on one CPU thread
22 sto render a 30.6 s showreel at 1080p60 on 24 threads with NVENC
0.4 sfrom saving a file to the new code under the playhead
~1 msper preview frame on the GPU in the desktop editor
01 / Why it is fast

A browser takes a screenshot per frame. effects just draws the frame.

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.

A browser renderer, per frame

  1. JS bundle
  2. headless Chrome tab
  3. style, layout, paint
  4. screenshot
  5. PNG or JPEG
  6. decode
  7. encoder

effects, per frame

  1. draw(t) in native code
  2. Skia raster
  3. raw pixels over a pipe
  4. x264 or NVENC

Measured, at 1080p

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 →
Compile a project0.4 s for preview · 3 s optimized
A frame of interface, text and layers~2 ms on one CPU thread
A full-screen pass: gradient, vignette or grain~5 ms each
Editor preview on the GPU~1 ms a frame
A 12.4 s spot at 60 fps (744 frames)20 s on 16 threads
A 30.6 s showreel at 60 fps, with shaders and footage50 s on the laptop · 22 s with NVENC
fable: 60 s of full-screen shaders on the CPUabout 13 min on 8 cores
02 / Written by agents

Every frame is a pure function of time.

One procedure per sceneNo component tree, no lifecycle, no async. A scene is handed the time and draws what the frame looks like.
Look before you rendereffects still writes PNGs of any moments you name, so an agent can check its own work in a second instead of rendering the film.
Errors with a file and a lineA project compiles in about 0.4 s. What is wrong comes back as a compiler error, not as a blank frame.
Same code, same pixelsRendering is deterministic, sound included. A laptop and a render box produce identical frames.
projects/spot/main.odin
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.mp4
03 / Docs you can scrub

Every procedure has a player under it.

The 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.

A frame of the landing-hello demo
2.11 / 3.40 slanding-hello
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)
}
04 / The fx library

Motion, type, shaders, footage and a synth. One import.

Full reference →

fx.anim

Turning time into motion: progress, eases, springs, staggers, keyframes and repeatable randomness.

prog · ep · win · spring · stagger · typed · keys

fx.draw

Shapes, paints and gradients, paths, text, icons, images, baked layers and raw shaders, all drawn immediately onto the frame.

rect · circle · text · image · linear · trimmed · bake

fx.group

A 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 · blend

fx.color

The 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 · stage

fx.theme

The 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 · icon

fx.post

Pixel 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 · glow

fx.shade

Pictures computed per pixel in SkSL: your own with shader and shader_scaled, and the ready-made nebula, orb and tunnel.

shader_scaled · nebula · orb · tunnel

fx.space

A camera, a projection and a few drawing procedures for point clouds, lines in space and depth of field.

Cam · project · line3 · bokeh · fib_sphere

fx.type

Text animated letter by letter: staggered arrivals with letters, decoding text with scramble, and glyphs for effects of your own.

letters · scramble · glyphs

fx.edit

Beats 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 · slam

fx.layout

A 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_of

fx.ui

Ready-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 · grain

fx.sound

Sounds on the timeline, how they are changed and mixed, and reading hits, drops and a spectrum out of audio files.

Sound · onsets · drops · spectrum

fx.music

Sounds 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 · limit

fx.footage

Drawing frames of video files like images, how they are decoded, and what makes that fast or slow.

footage(file, t, r, focus, zoom)

fx.voice-over

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

Clone it. Build it.
Render something.

$ 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