Struct siege_color::srgb::Srgb
[−]
[src]
pub struct Srgb { pub v: Vec3<f32>, }
Fields
v: Vec3<f32>
Methods
impl Srgb
[src]
pub fn new(r: f32, g: f32, b: f32) -> Srgb
[src]
pub fn r(&self) -> f32
[src]
pub fn g(&self) -> f32
[src]
pub fn b(&self) -> f32
[src]
Trait Implementations
impl From<Srgb> for Srgb24
[src]
impl From<Srgb24> for Srgb
[src]
impl Debug for Srgb
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Srgb
[src]
fn clone(&self) -> Srgb
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<Srgb> for LinearSrgb
[src]
fn from(srgb: Srgb) -> LinearSrgb
[src]
Performs the conversion.
impl From<LinearSrgb> for Srgb
[src]
fn from(s: LinearSrgb) -> Srgb
[src]
Performs the conversion.