Expand description
The preludes
Modules§
- transform
- Transform related traits
Structs§
- Aabb
Point - A point based on
Aabb, the number in each axis means the fraction of the size of theAabb. (0, 0, 0) is the center point. - Camera
Frame - The data of a camera
- Ranim
Scene - The main struct that offers the ranim’s API, and encodes animations
- Timeline
Id - The id of a timeline.
Enums§
Traits§
- Aabb
- Axis-Aligned Bounding Box
- Align
Slice - Align a slice of items
- Alignable
- A trait for aligning two items
- Arrange
Slice - A trait for arranging operations.
- Color
- A trait for items that have both fill color and stroke color
- Discard
- A trait for discarding a value.
- Empty
- A trait for items that can be empty
- Fill
Color - A trait for items that have fill color
- Interpolatable
- A trait for interpolating to values
- Locate
- Locate a point.
- Opacity
- A trait for items with opacity
- Partial
- A trait for items that can be displayed partially
- Points
Func - A trait for items that can apply points function.
- Rotate
Transform - Rotating operations.
- Scale
Transform - Scaling operations.
- Scale
Transform Ext - Useful extensions for scaling operations.
- Scale
Transform Stroke Ext - A trait for scaling operations with stroke width.
- Shift
Transform - Shifting operations.
- Shift
Transform Ext - Useful extensions for shifting operations.
- Stroke
Color - A trait for items that have stroke color
- Stroke
Width - A trait for items have stroke width
- Timeline
Func - Functions for a timeline
- Timelines
Func - Functions for timelines
- With
- A trait for mutating a value in place.
Functions§
- color
- Parse color string to
AlphaColor<Srgb> - rgb
- Construct an
AlphaColor<Srgb>from rgb f32, the alpha value will be 1.0 - rgb8
- Construct an
AlphaColor<Srgb>from rgb u8, the alpha value will be 255 - rgba
- Construct an
AlphaColor<Srgb>from rgba f32 - rgba8
- Construct an
AlphaColor<Srgb>from rgba u8 - try_
color - Parse color string to
AlphaColor<Srgb>without panic
Attribute Macros§
- output
- Define a video output.
- scene
- wasm_
demo_ doc