Documentation
¶
Overview ¶
Render makes a video of native UI with the render plugin: a six second promo at 1920×1080 and 30 frames a second, with sound, whose frames draw on the GPU, as a window's do, and encode with the system's encoder.
go run ./examples/render # promo.mp4 go run ./examples/render -o promo.mov -codec prores go run ./examples/render -o frames/%04d.png # PNGs go run ./examples/render -renderer cpu # on the CPU go run ./examples/render -workers 1 # one frame at a time go run ./examples/render -preview # plays it in a window
The view is package ui's: text, boxes and real widgets, a switch, a slider and a progress bar, moved by the frame's number (Interpolate, Spring) and by ui's own animations, which follow the video's clock. The sound is made here too: plucks of a sine, played where the scenes start.