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 Color
pub fn rgba(r: f32, g: f32, b: f32, a: f32) -> Color
[src]
pub fn rgba(r: f32, g: f32, b: f32, a: f32) -> Color
pub fn rgb(r: f32, g: f32, b: f32) -> Color
[src]
pub fn rgb(r: f32, g: f32, b: f32) -> Color
pub fn h(&self) -> f32
[src]
pub fn h(&self) -> f32
pub fn s(&self) -> f32
[src]
pub fn s(&self) -> f32
pub fn v(&self) -> f32
[src]
pub fn v(&self) -> f32
Trait Implementations
impl Copy for Color
[src]
impl Copy for Color
impl Clone for Color
[src]
impl Clone for Color
fn clone(&self) -> Color
[src]
fn clone(&self) -> Color
Returns 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 Color
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Color
[src]
impl PartialEq for Color
fn eq(&self, other: &Color) -> bool
[src]
fn eq(&self, other: &Color) -> bool
This 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) -> bool
This method tests for !=
.
impl<'l> From<&'l Color> for Variant
[src]
impl<'l> From<&'l Color> for Variant