pub struct SampledAnimator {
pub selector: SampledSelector,
pub offset: Option<[f32; 2]>,
pub scale: Option<[f32; 2]>,
pub rotation_degrees: Option<f32>,
pub opacity: Option<f32>,
pub fill: Option<[f32; 4]>,
pub stroke: Option<[f32; 4]>,
pub tracking: Option<f32>,
}Expand description
An animator’s selector and properties at one time.
Fields§
§selector: SampledSelectorWhat it selects.
offset: Option<[f32; 2]>Offset in font sizes, +y down.
scale: Option<[f32; 2]>Scale about each character’s centre.
rotation_degrees: Option<f32>Clockwise degrees about each character’s centre.
opacity: Option<f32>Target opacity.
fill: Option<[f32; 4]>Target fill color, straight sRGB.
stroke: Option<[f32; 4]>Target stroke color, straight sRGB.
tracking: Option<f32>Extra space after each character, font sizes.
Trait Implementations§
Source§impl Clone for SampledAnimator
impl Clone for SampledAnimator
Source§impl Debug for SampledAnimator
impl Debug for SampledAnimator
Source§impl PartialEq for SampledAnimator
impl PartialEq for SampledAnimator
impl StructuralPartialEq for SampledAnimator
Auto Trait Implementations§
impl Freeze for SampledAnimator
impl RefUnwindSafe for SampledAnimator
impl Send for SampledAnimator
impl Sync for SampledAnimator
impl Unpin for SampledAnimator
impl UnsafeUnpin for SampledAnimator
impl UnwindSafe for SampledAnimator
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