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

Linear
Show fields

Fields of Linear

start_color: Cend_color: Cdirection: LinearGradientDirection
Circular
Show fields

Fields of Circular

start_color: Cend_color: C

Implementations

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]

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]

Auto Trait Implementations

impl<C> RefUnwindSafe for Gradient<C> where
    C: RefUnwindSafe

impl<C> Send for Gradient<C> where
    C: Send

impl<C> Sync for Gradient<C> where
    C: Sync

impl<C> Unpin for Gradient<C> where
    C: Unpin

impl<C> UnwindSafe for Gradient<C> where
    C: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]