[−][src]Enum cichlid::GradientDirection
Possible Directions around the color wheel a gradient can go.
Variants
Forward
Goes around the color wheel clockwise. ala, Hue increases as the gradient progresses, including integer wrapping.
Backwards
Goes around the color wheel counter-clockwise. Hue decreases as the gradient progresses, including integer wrapping.
Shortest
Goes around the color wheel by the shortest direction available.
Longest
Goes around the color wheel by longest direction available.
Methods
impl GradientDirection
[src]
pub fn into_hue_direction(self, hue_diff: u8) -> HueDirection
[src]
Transforms a GradientDirection
into a HueDirection
.
hue_diff
is the difference between the ending hue and the starting hue. Specifically,
hue_diff = end_hue.wrapping_sub(start_hue)
. This is needed in the cases where the
discriminant is neither forwards or backwards.
Trait Implementations
impl Clone for GradientDirection
[src]
fn clone(&self) -> GradientDirection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GradientDirection
[src]
impl Eq for GradientDirection
[src]
impl PartialEq<GradientDirection> for GradientDirection
[src]
fn eq(&self, other: &GradientDirection) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Debug for GradientDirection
[src]
Auto Trait Implementations
impl Sync for GradientDirection
impl Unpin for GradientDirection
impl Send for GradientDirection
impl UnwindSafe for GradientDirection
impl RefUnwindSafe for GradientDirection
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,