Module prelude

Module prelude 

Source
Expand description

The preludes

Modules§

transform
Transform related traits

Structs§

AabbPoint
A point based on Aabb, the number in each axis means the fraction of the size of the Aabb. (0, 0, 0) is the center point.
CameraFrame
The data of a camera
RanimScene
The main struct that offers the ranim’s API, and encodes animations
TimelineId
The id of a timeline.

Enums§

ScaleHint
A hint for scaling the mobject.
TimeMark
TimeMark

Traits§

Aabb
Axis-Aligned Bounding Box
AlignSlice
Align a slice of items
Alignable
A trait for aligning two items
ArrangeSlice
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
FillColor
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
PointsFunc
A trait for items that can apply points function.
RotateTransform
Rotating operations.
ScaleTransform
Scaling operations.
ScaleTransformExt
Useful extensions for scaling operations.
ScaleTransformStrokeExt
A trait for scaling operations with stroke width.
ShiftTransform
Shifting operations.
ShiftTransformExt
Useful extensions for shifting operations.
StrokeColor
A trait for items that have stroke color
StrokeWidth
A trait for items have stroke width
TimelineFunc
Functions for a timeline
TimelinesFunc
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