# Introduction


effects makes video from code. A video is a list of scenes, a scene is a procedure, and the procedure is handed one thing: the time. It draws what the frame looks like at that time, with Skia, from compiled Odin. A command-line renderer turns a project into an MP4; a desktop editor previews it on the GPU and reloads your code when you save.

```odin
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)
	}
}
```

That is a whole scene: a background, and a headline that rises 30 pixels while it fades in. There is no timeline object, no keyframe store and no retained tree of elements. Every value on screen is computed from `s.t`.

## Why it is built this way

**A frame is a pure function of time.** Any frame can be drawn on its own, in any order, on any thread. The renderer gives each core its own stretch of the film, and an agent (or you) can ask for a single frame at 7.6 seconds without rendering the 7.6 seconds before it.

**No browser.** Most video-as-code tools render by loading a web page in headless Chrome and taking a screenshot per frame. effects calls Skia directly from native code and writes raw pixels into the encoder's pipe. A frame of interface, text and layers takes about 2 ms on one CPU thread. See [what things cost](/docs/performance/).

**Code you can read back.** A project is a directory of plain source files. They diff, they review, and a model can write and correct them.

## What is in the box

| Part | What it is |
| --- | --- |
| `fx` | The library scenes are written with: animation, drawing, groups and grading, post filters, shaders, a little 3D, type, layout, an interface kit, sound, a synth. This is most of these docs. |
| `effects` | The command-line renderer: `render`, `still`, `mix`, `bench`, `build`, `beats`. See [the CLI](/docs/cli/). |
| `effects-edit` | The desktop editor: GPU preview, timeline, hot reload. See [the editor](/docs/editor/). |
| `sk`, `shim` | Odin bindings and a small C layer over Skia. You rarely touch them directly; paths are the exception. |

## Where to go next

1. [Install](/docs/install/) the toolchain and build the two programs.
2. Make [your first video](/docs/first-video/): one file, one scene, one render.
3. Read [scenes and time](/docs/scenes/) to learn how a video is put together.
4. Then use the `fx` reference as you need it. Every page there has players that run the real library in your browser: drag the playhead, change an argument, read the code that drew the frame.

If you are an agent, or are setting one up to write videos, read [working as an agent](/docs/agents/) first, and fetch [llms-full.txt](/llms-full.txt) for these docs as one plain-text file.

## What it does not do

It is honest to say what is missing. Renders are 8-bit H.264 in BT.709; there is no HDR output. The toolchain runs on Linux. Shaders run on the CPU in final renders, which makes full-screen SkSL the expensive thing in a film. There is no undo in the editor. Text runs with mixed weights or colors inside one paragraph are composed from several text calls rather than one.
