Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

463 B
Raw Blame
// The chaser (game.tsx): a game ("chaser") and a video ("orbit") of a small policy net steering a dot.
import { Composition, registerRoot } from "raea";
import { Chaser, FPS, H, Orbit, W } from "./game.tsx";

registerRoot(() => (
  <>
    <Composition id="chaser" component={Chaser} width={W} height={H} fps={FPS} durationInFrames={FPS * 60} />
    <Composition id="orbit" component={Orbit} width={W} height={H} fps={FPS} durationInFrames={FPS * 6} />
  </>
));