Skip to main content

Module prelude

Module prelude 

Source
Expand description

The preludes

Modules§

transform
Transform related traits

Macros§

seq
Construct an AnimSequence by playing each animation in order.
stack
Construct an AnimStack by pushing each animation at the same origin.

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.
AnimSequence
Dynamic sequential animation container.
AnimStack
Dynamic overlay animation container.
CameraFrame
The data of a camera
RanimScene
Animation definition builder passed to scene constructors.

Enums§

ScaleHint
A hint for scaling the mobject.
TimeMark
A marker attached to a time in a scene definition.

Traits§

Aabb
Axis-Aligned Bounding Box
AlignSlice
Align a slice of items
Alignable
A trait for aligning two items
Animation
A statically typed animation definition that can be lowered into a runtime animation.
AnimationExt
Playback parameter builders for animations that have not been placed yet.
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
Eval
A normalized animation evaluator.
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
Placeable
Capability for animation definitions that have not been fixed in parent time coordinates.
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.
StaticAnim
Convenience methods for zero-duration static animations.
StrokeColor
A trait for items that have stroke color
StrokeWidth
A trait for items have stroke width
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