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.

skills pin: raea-skills #114, so 0.1.9's strict skills gate passes

shinyobjectze3b55f299092
diff --git a/sdk/guides/craft/motion.md b/sdk/guides/craft/motion.md
index c964e8dd..ed7b4e16 100644
--- a/sdk/guides/craft/motion.md
+++ b/sdk/guides/craft/motion.md
@@ -39,7 +39,10 @@ Read the files a task needs with `raea guide motion/NAME`, one or two at a time,
2. **Frame-pure.** The renderer can ask for any frame in any order, so derive everything from the frame number.
`useState`, `useEffect` and timers don't animate a render. `Math.random()` is seeded for each frame: a render
repeats, but every frame draws new numbers, so it suits grain or a flicker, and something that should hold still
- (a scatter, a layout) is seeded from an index. `Date` (`Date.now()`, `new Date()`) is the frame's time.
+ (a scatter, a layout) is seeded from an index: `random("star" + i)` from raea is the same number on every frame,
+ run and machine. `interpolateColors(frame, [0, 30], ["#f00", "#00f"])` eases between colours as `interpolate`
+ does between numbers, and `<OffthreadVideo>` is `<Video>` under the name code moved from another React video tool
+ uses. `Date` (`Date.now()`, `new Date()`) is the frame's time.
A frame that needs one more step before it's taken (text measured in an effect, a fetch) holds it with
`delayRender("what it waits for")` and releases it with `continueRender(handle)` (`raea/hold`); a hold never
released fails the render after 30 s, naming its label.
diff --git a/skills b/skills
index 43bd6a87..6c7cbf0f 160000
--- a/skills
+++ b/skills
@@ -1 +1 @@
-Subproject commit 43bd6a870ba2b26a8aab84b8220671f9fac00eac
+Subproject commit 6c7cbf0fcc6fc06a8f427928247bad1f537cf452
diff --git a/tools/skills.sh b/tools/skills.sh
index 576199c3..15bd5afc 100755
--- a/tools/skills.sh
+++ b/tools/skills.sh
@@ -277,7 +277,8 @@ module:dev_tools (raea's own debugging overlays)
module:test (raea's test harness, for raea's own tests)
module:page-layout (installed by the entry: a composition reads its layout through the DOM on its refs, docs/layout-reads.feature)
module:dom-reads (installed by the entry on every ref; what it adds is the web's own API)
-module:dom-tree (installed by the entry on every ref; what it adds is the web's own API)"
+module:dom-tree (installed by the entry on every ref; what it adds is the web's own API)
+module:random-colors (its names, random, interpolateColors and OffthreadVideo, come from raea itself; craft/motion.md teaches them)"
coverage() {
local corpus v m t f; corpus=$(mktemp "${TMPDIR:-/tmp}/skills-cov.XXXXXX")
texts | while read -r f; do cat "$f"; echo; done > "$corpus"