pub struct Polystar {
pub star: bool,
pub center: Point,
pub points: f64,
pub outer_radius: f64,
pub inner_radius: f64,
pub outer_roundness: f64,
pub inner_roundness: f64,
pub degrees: f64,
}Expand description
A star or polygon, as a Lottie polystar draws it.
Fields§
§star: boolWhether it has inner corners.
center: PointIts centre, in pixels.
points: f64Its points; a fraction is dropped.
outer_radius: f64The points’ distance from the centre, in pixels.
inner_radius: f64A star’s inner corners’ distance from the centre, in pixels.
outer_roundness: f64How round the points are, in 0..=1.
inner_roundness: f64How round a star’s inner corners are, in 0..=1.
degrees: f64Clockwise rotation, in degrees.
Trait Implementations§
impl Copy for Polystar
impl StructuralPartialEq for Polystar
Auto Trait Implementations§
impl Freeze for Polystar
impl RefUnwindSafe for Polystar
impl Send for Polystar
impl Sync for Polystar
impl Unpin for Polystar
impl UnsafeUnpin for Polystar
impl UnwindSafe for Polystar
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