pub struct RGBAf { /* private fields */ }
Implementations
sourceimpl RGBAf
impl RGBAf
pub fn new(r: f32, g: f32, b: f32, a: f32) -> Self
pub fn black() -> Self
pub fn white() -> Self
pub fn red() -> Self
pub fn green() -> Self
pub fn blue() -> Self
pub fn black_alpha(alpha: f32) -> Self
pub fn white_alpha(alpha: f32) -> Self
pub fn red_alpha(alpha: f32) -> Self
pub fn green_alpha(alpha: f32) -> Self
pub fn blue_alpha(alpha: f32) -> Self
pub fn r(self) -> f32
pub fn g(self) -> f32
pub fn b(self) -> f32
pub fn a(self) -> f32
sourceimpl RGBAf
impl RGBAf
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
Trait Implementations
sourceimpl AddAssign<RGBAf> for RGBAf
impl AddAssign<RGBAf> for RGBAf
sourcefn add_assign(&mut self, rhs: RGBAf)
fn add_assign(&mut self, rhs: RGBAf)
Performs the +=
operation. Read more
sourceimpl AddAssign<f32> for RGBAf
impl AddAssign<f32> for RGBAf
sourcefn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the +=
operation. Read more
sourceimpl DivAssign<RGBAf> for RGBAf
impl DivAssign<RGBAf> for RGBAf
sourcefn div_assign(&mut self, rhs: RGBAf)
fn div_assign(&mut self, rhs: RGBAf)
Performs the /=
operation. Read more
sourceimpl DivAssign<f32> for RGBAf
impl DivAssign<f32> for RGBAf
sourcefn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the /=
operation. Read more
sourceimpl MulAssign<RGBAf> for RGBAf
impl MulAssign<RGBAf> for RGBAf
sourcefn mul_assign(&mut self, rhs: RGBAf)
fn mul_assign(&mut self, rhs: RGBAf)
Performs the *=
operation. Read more
sourceimpl MulAssign<f32> for RGBAf
impl MulAssign<f32> for RGBAf
sourcefn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the *=
operation. Read more
sourceimpl SubAssign<RGBAf> for RGBAf
impl SubAssign<RGBAf> for RGBAf
sourcefn sub_assign(&mut self, rhs: RGBAf)
fn sub_assign(&mut self, rhs: RGBAf)
Performs the -=
operation. Read more
sourceimpl SubAssign<f32> for RGBAf
impl SubAssign<f32> for RGBAf
sourcefn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the -=
operation. Read more
impl Copy for RGBAf
impl StructuralPartialEq for RGBAf
Auto Trait Implementations
impl RefUnwindSafe for RGBAf
impl Send for RGBAf
impl Sync for RGBAf
impl Unpin for RGBAf
impl UnwindSafe for RGBAf
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more