frus-core
The vocabulary every other frus crate speaks: geometry, colour, paths, text styles,
animation and the Scene a frame is drawn from.
Layer: Foundations, the bottom one. It has a single small dependency (bytemuck) and
knows nothing about windows, GPUs or platforms. See
ARCHITECTURE.md.
What you reach for
SceneandPrimitive: the flat display list. Widgets push primitives into it and the renderer draws it, and nothing else crosses from one to the other.Color,Rect,Size,Point,Insets: the value types every layer passes around.AnimationController,Tween,Curve,SpringSimulation: time and physics, shared by every animated widget.
Example
use ;
let mut scene = new;
scene.fill_rect;
assert_eq!;
Part of frus
Applications rarely name this crate: the frus facade and frus-widgets re-export the
types above. See the workspace README.
Licensed under MIT or Apache-2.0.