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>>,
}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].
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.
Implementations§
Trait Implementations§
Source§impl Clone for TextAnimatorProperties
impl Clone for TextAnimatorProperties
Source§impl Debug for TextAnimatorProperties
impl Debug for TextAnimatorProperties
Source§impl Default for TextAnimatorProperties
impl Default for TextAnimatorProperties
Source§impl<'de> Deserialize<'de> for TextAnimatorProperties
impl<'de> Deserialize<'de> for TextAnimatorProperties
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextAnimatorProperties
impl PartialEq for TextAnimatorProperties
Source§impl Serialize for TextAnimatorProperties
impl Serialize for TextAnimatorProperties
impl StructuralPartialEq for TextAnimatorProperties
Auto Trait Implementations§
impl Freeze for TextAnimatorProperties
impl RefUnwindSafe for TextAnimatorProperties
impl Send for TextAnimatorProperties
impl Sync for TextAnimatorProperties
impl Unpin for TextAnimatorProperties
impl UnsafeUnpin for TextAnimatorProperties
impl UnwindSafe for TextAnimatorProperties
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more