Enum rin::graphics::Gradient [−][src]
pub enum Gradient<C> { Linear { start_color: C, end_color: C, direction: LinearGradientDirection, }, Circular { start_color: C, end_color: C, }, }
Specifies a gradient that can be used to draw certain primitives instead of a solid color
Variants
Show fields
Fields of Linear
Implementations
impl<C> Gradient<C> where
C: ToRgb,
[src]
impl<C> Gradient<C> where
C: ToRgb,
[src]pub fn rgb_at<T>(
&self,
norm_pos: Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) -> Rgb<T, Srgb> where
T: Channel,
[src]
&self,
norm_pos: Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) -> Rgb<T, Srgb> where
T: Channel,
pub fn rgba_at<T>(
&self,
norm_pos: Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) -> AlphaColor<T, Rgb<T, Srgb>> where
T: Channel,
[src]
&self,
norm_pos: Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) -> AlphaColor<T, Rgb<T, Srgb>> where
T: Channel,
Auto Trait Implementations
impl<C> RefUnwindSafe for Gradient<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for Gradient<C> where
C: Send,
C: Send,
impl<C> Sync for Gradient<C> where
C: Sync,
C: Sync,
impl<C> Unpin for Gradient<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for Gradient<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]