pub struct Counter {Show 19 fields
pub id: Option<String>,
pub start: f64,
pub end: f64,
pub count_duration: Option<f64>,
pub easing: Option<EasingChoice>,
pub format: Option<NumberFormat>,
pub style: Option<TextRole>,
pub font_size: Option<f32>,
pub font_family: Option<String>,
pub color: Option<Rgba>,
pub strokes: Vec<TextStroke>,
pub shadows: Vec<TextShadow>,
pub opacity: Option<f32>,
pub at: Option<f64>,
pub duration: Option<f64>,
pub inset: Option<Inset>,
pub align: Option<Align>,
pub enter: Option<Motion>,
pub exit: Option<Motion>,
}Expand description
A number counting from start to end, shown as text that changes on the frame grid.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
start: f64The value it counts from.
end: f64The value it counts to.
count_duration: Option<f64>Seconds the count takes from the node’s start; it then holds end. Default: the node’s
whole length.
easing: Option<EasingChoice>The timing curve of the count. Default linear.
format: Option<NumberFormat>How the number is written.
style: Option<TextRole>The theme style it starts from. Default title.
font_size: Option<f32>Font size in pixels. Default: the style’s.
font_family: Option<String>Family. Default: the theme’s.
color: Option<Rgba>Color. Default: the theme’s text color.
strokes: Vec<TextStroke>Bands around the glyphs, as a text node’s strokes.
shadows: Vec<TextShadow>Shadows of the glyphs, as a text node’s shadows.
opacity: Option<f32>Opacity, 0..=1. Default 1.
at: Option<f64>Seconds from the parent’s start (an overlay’s: the video’s). Ignored in a sequence.
duration: Option<f64>Length in seconds. Default: the node’s own length, else what its parent gives it.
inset: Option<Inset>Pixels kept clear inside the parent’s area: one number, or [top, right, bottom, left].
align: Option<Align>Where in its area the number lies. Default center.
enter: Option<Motion>How it comes in at its start.
exit: Option<Motion>How it goes out, ending at its end.