[−][src]Struct pathfinder_color::ColorF
Methods
impl ColorF
[src]
pub fn new(r: f32, g: f32, b: f32, a: f32) -> ColorF
[src]
pub fn from_hsla(h: f32, s: f32, l: f32, a: f32) -> ColorF
[src]
pub fn from_hsl(h: f32, s: f32, l: f32) -> ColorF
[src]
pub fn transparent_black() -> ColorF
[src]
pub fn black() -> ColorF
[src]
pub fn white() -> ColorF
[src]
pub fn to_u8(&self) -> ColorU
[src]
pub fn lerp(&self, other: ColorF, t: f32) -> ColorF
[src]
pub fn r(&self) -> f32
[src]
pub fn g(&self) -> f32
[src]
pub fn b(&self) -> f32
[src]
pub fn a(&self) -> f32
[src]
pub fn set_r(&mut self, r: f32)
[src]
pub fn set_g(&mut self, g: f32)
[src]
pub fn set_b(&mut self, b: f32)
[src]
pub fn set_a(&mut self, a: f32)
[src]
Trait Implementations
impl Clone for ColorF
[src]
impl Copy for ColorF
[src]
impl Debug for ColorF
[src]
impl Default for ColorF
[src]
impl PartialEq<ColorF> for ColorF
[src]
impl StructuralPartialEq for ColorF
[src]
Auto Trait Implementations
impl RefUnwindSafe for ColorF
impl Send for ColorF
impl Sync for ColorF
impl Unpin for ColorF
impl UnwindSafe for ColorF
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,
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> 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>,