pub struct TextAnimatorProperties {
pub offset: Option<Animated<Vec2>>,
pub scale: Option<Animated<Vec2>>,
pub rotation_degrees: Option<Animated<f32>>,
pub opacity: Option<Animated<f32>>,
pub fill: Option<Animated<Rgba>>,
pub stroke: Option<Animated<Rgba>>,
pub tracking: Option<Animated<f32>>,
pub advance_follows_scale: bool,
pub reveal: Option<TextReveal>,
}Expand description
What an animator does to each character, in proportion to its selection. A property left out does nothing.
Fields§
§offset: Option<Animated<Vec2>>Moves the character, in font sizes, +y down.
scale: Option<Animated<Vec2>>Scales the character about its centre; 1 is none. Each axis in [0, 10]. The scales of
several animators multiply, and the product is at most 10 on each axis.
rotation_degrees: Option<Animated<f32>>Turns the character about its centre, clockwise degrees.
opacity: Option<Animated<f32>>The opacity a fully selected character takes, in [0, 1].
fill: Option<Animated<Rgba>>The fill color a fully selected character takes; a gradient fill is mixed toward it.
stroke: Option<Animated<Rgba>>The color every stroke of a fully selected character takes.
tracking: Option<Animated<f32>>Space added after the character, in font sizes, in [-0.5, 1], as letter spacing adds
it. Lines are not re-broken.
advance_follows_scale: boolWhether the character’s advance follows this animator’s horizontal scale, pushing the
characters after it along its line, which is re-aligned; lines are not re-broken, and the
text wraps with room for the largest scale this can reach. Needs scale.
reveal: Option<TextReveal>Wipes the character’s unit (its group, as animator_grouping gives) in along a straight
edge, cutting its fill, strokes and color glyphs alike; a fully selected unit shows
progress of itself.