pub struct RGBf { /* private fields */ }
Implementations§
Source§impl RGBf
impl RGBf
pub fn sum(self) -> f32
pub fn gray(self) -> f32
pub fn luma1(self) -> f32
pub fn luma2(self) -> f32
pub fn min_element(self) -> f32
pub fn max_element(self) -> f32
pub fn is_finite(self) -> bool
pub fn is_nan(self) -> bool
pub fn is_infinite(self) -> bool
pub fn clamp(self, min: Self, max: Self) -> Self
pub fn min(self, rhs: Self) -> Self
pub fn max(self, rhs: Self) -> Self
pub fn abs(self) -> Self
pub fn round(self) -> Self
pub fn floor(self) -> Self
pub fn ceil(self) -> Self
pub fn trunc(self) -> Self
pub fn fract(self) -> Self
pub fn sqrt(self) -> Self
pub fn exp(self) -> Self
pub fn exp2(self) -> Self
pub fn ln(self) -> Self
pub fn log(self, base: f32) -> Self
pub fn log2(self) -> Self
pub fn log10(self) -> Self
pub fn cbrt(self) -> Self
pub fn powf(self, n: f32) -> Self
pub fn sin(self) -> Self
pub fn cos(self) -> Self
pub fn tan(self) -> Self
pub fn sin_cos(self) -> (Self, Self)
pub fn recip(self) -> Self
pub fn saturate(self) -> Self
pub fn lerp(self, rhs: Self, s: f32) -> Self
pub fn gamma_correct(self) -> Self
Source§impl RGBf
impl RGBf
pub fn to_array(self) -> [f32; 3]
pub fn to_tuple(self) -> (f32, f32, f32)
pub fn to_rgb(self) -> RGB
pub fn to_rgba(self) -> RGBA
pub fn to_rgba_alpha(self, alpha: f64) -> RGBA
pub fn to_rgbaf(self) -> RGBAf
pub fn to_rgbaf_alpha(self, alpha: f32) -> RGBAf
pub fn to_rgb24(self) -> RGB24
pub fn to_rgba32(self) -> RGBA32
pub fn to_rgba32_alpha(self, alpha: u8) -> RGBA32
Trait Implementations§
Source§impl AddAssign<f32> for RGBf
impl AddAssign<f32> for RGBf
Source§fn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the
+=
operation. Read moreSource§impl AddAssign for RGBf
impl AddAssign for RGBf
Source§fn add_assign(&mut self, rhs: RGBf)
fn add_assign(&mut self, rhs: RGBf)
Performs the
+=
operation. Read moreSource§impl DivAssign<f32> for RGBf
impl DivAssign<f32> for RGBf
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moreSource§impl DivAssign for RGBf
impl DivAssign for RGBf
Source§fn div_assign(&mut self, rhs: RGBf)
fn div_assign(&mut self, rhs: RGBf)
Performs the
/=
operation. Read moreSource§impl MulAssign<f32> for RGBf
impl MulAssign<f32> for RGBf
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moreSource§impl MulAssign for RGBf
impl MulAssign for RGBf
Source§fn mul_assign(&mut self, rhs: RGBf)
fn mul_assign(&mut self, rhs: RGBf)
Performs the
*=
operation. Read moreSource§impl SubAssign<f32> for RGBf
impl SubAssign<f32> for RGBf
Source§fn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the
-=
operation. Read moreSource§impl SubAssign for RGBf
impl SubAssign for RGBf
Source§fn sub_assign(&mut self, rhs: RGBf)
fn sub_assign(&mut self, rhs: RGBf)
Performs the
-=
operation. Read moreimpl Copy for RGBf
impl StructuralPartialEq for RGBf
Auto Trait Implementations§
impl Freeze for RGBf
impl RefUnwindSafe for RGBf
impl Send for RGBf
impl Sync for RGBf
impl Unpin for RGBf
impl UnwindSafe for RGBf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more