[−][src]Struct nanachi::fill_color::gradient::LinearGradient
Linear gradient.
Examples
use nanachi::pixel::Rgba; let color = nanachi::fill_color::LinearGradient::new((0.0, 0.0), (100.0, 0.0), vec![ (0.0, Rgba([1.0, 0.0, 0.0, 1.0])), (0.5, Rgba([0.0, 1.0, 0.0, 1.0])), (1.0, Rgba([0.0, 0.0, 1.0, 1.0])), ]);
Implementations
impl<P: Pixel> LinearGradient<P>
[src]
Trait Implementations
impl<P: Clone + Pixel> Clone for LinearGradient<P>
[src]
pub fn clone(&self) -> LinearGradient<P>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<P: Debug + Pixel> Debug for LinearGradient<P>
[src]
impl<P: Pixel> FillColor<P> for LinearGradient<P>
[src]
pub fn fill_color(&self, x: f64, y: f64) -> P
[src]
Auto Trait Implementations
impl<P> RefUnwindSafe for LinearGradient<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for LinearGradient<P> where
P: Send,
P: Send,
impl<P> Sync for LinearGradient<P> where
P: Sync,
P: Sync,
impl<P> Unpin for LinearGradient<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for LinearGradient<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
pub fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,