pub struct Shape {
pub id: Option<String>,
pub shapes: Vec<Geometry>,
pub fill: Option<PaintChoice>,
pub stroke: Option<Stroke>,
pub trim: Option<Trim>,
pub opacity: Option<f32>,
pub at: Option<f64>,
pub duration: Option<f64>,
pub inset: Option<Inset>,
pub enter: Option<Motion>,
pub exit: Option<Motion>,
}Expand description
Shapes in the node’s area, filled and stroked as one compound path. Coordinates are fractions
of the area, [0, 0] its top left to [1, 1] its bottom right; lengths are fractions of its
shorter side.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
shapes: Vec<Geometry>The outlines, at least one.
fill: Option<PaintChoice>What covers their inside. Default: nothing, unless there is no stroke, then the theme’s accent.
stroke: Option<Stroke>A line along the outlines.
trim: Option<Trim>Keeps part of the outlines’ length. A line that draws itself has
{"end": {"from": 0, "to": 1}}.
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: what its parent gives it.
inset: Option<Inset>Pixels kept clear inside the parent’s area: the shapes’ area.
enter: Option<Motion>How it comes in at its start.
exit: Option<Motion>How it goes out, ending at its end.