Struct gdnative_core::Color [−][src]
RGBA color with 32 bits floating point components.
Fields
r: f32
g: f32
b: f32
a: f32
Methods
impl Color[src]
impl Colorpub fn rgba(r: f32, g: f32, b: f32, a: f32) -> Color[src]
pub fn rgba(r: f32, g: f32, b: f32, a: f32) -> Colorpub fn rgb(r: f32, g: f32, b: f32) -> Color[src]
pub fn rgb(r: f32, g: f32, b: f32) -> Colorpub fn h(&self) -> f32[src]
pub fn h(&self) -> f32pub fn s(&self) -> f32[src]
pub fn s(&self) -> f32pub fn v(&self) -> f32[src]
pub fn v(&self) -> f32Trait Implementations
impl Copy for Color[src]
impl Copy for Colorimpl Clone for Color[src]
impl Clone for Colorfn clone(&self) -> Color[src]
fn clone(&self) -> ColorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Color[src]
impl Debug for Colorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Color[src]
impl PartialEq for Colorfn eq(&self, other: &Color) -> bool[src]
fn eq(&self, other: &Color) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Color) -> bool[src]
fn ne(&self, other: &Color) -> boolThis method tests for !=.
impl<'l> From<&'l Color> for Variant[src]
impl<'l> From<&'l Color> for Variant