mirror of
https://github.com/guilhermewerner/wgpu-renderer
synced 2025-06-16 13:54:21 +00:00
Initial wgpu abstraction
This commit is contained in:
17
Source/Color/HslaColor.rs
Normal file
17
Source/Color/HslaColor.rs
Normal file
@ -0,0 +1,17 @@
|
||||
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,
|
||||
}
|
Reference in New Issue
Block a user