mirror of
https://github.com/guilhermewerner/wgpu-renderer
synced 2025-06-15 13:24:20 +00:00
18 lines
382 B
Rust
18 lines
382 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[repr(C)]
|
|
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
|
|
pub struct HslaColor {
|
|
/// Hue component. [0.0, 360.0]
|
|
pub hue: f32,
|
|
|
|
/// Saturation component. [0.0, 1.0]
|
|
pub saturation: f32,
|
|
|
|
/// Lightness component. [0.0, 1.0]
|
|
pub lightness: f32,
|
|
|
|
/// Alpha component. [0.0, 1.0]
|
|
pub alpha: f32,
|
|
}
|