17 lines
250 B
Rust
17 lines
250 B
Rust
|
|
#[derive(Debug, Clone, Copy, PartialEq)]
|
||
|
|
pub struct Color {
|
||
|
|
pub r: f32,
|
||
|
|
pub g: f32,
|
||
|
|
pub b: f32,
|
||
|
|
pub a: f32,
|
||
|
|
}
|
||
|
|
|
||
|
|
impl Color {
|
||
|
|
pub const BLACK: Color = Color {
|
||
|
|
r: 0.0,
|
||
|
|
g: 0.0,
|
||
|
|
b: 0.0,
|
||
|
|
a: 1.0,
|
||
|
|
};
|
||
|
|
}
|