pub enum ShadingKind {
Axial {
from: [f64; 2],
to: [f64; 2],
},
Radial {
from: [f64; 2],
r0: f64,
to: [f64; 2],
r1: f64,
},
}Expand description
the geometry of a gradient, in the user space of the canvas at the time it is painted
Variants§
Axial
colour runs from from (t = 0) to to (t = 1), constant across (PDF type 2)
Radial
circles from (from, r0) at t = 0 to (to, r1) at t = 1 (PDF type 3); radii >= 0
Trait Implementations§
Source§impl Clone for ShadingKind
impl Clone for ShadingKind
impl Copy for ShadingKind
Source§impl Debug for ShadingKind
impl Debug for ShadingKind
Source§impl PartialEq for ShadingKind
impl PartialEq for ShadingKind
impl StructuralPartialEq for ShadingKind
Auto Trait Implementations§
impl Forget for ShadingKind
impl Freeze for ShadingKind
impl Move for ShadingKind
impl RefUnwindSafe for ShadingKind
impl Send for ShadingKind
impl Sync for ShadingKind
impl Unpin for ShadingKind
impl UnsafeUnpin for ShadingKind
impl UnwindSafe for ShadingKind
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