MCPcopy Create free account
hub / github.com/csskit/csskit / Hsv

Class Hsv

crates/chromashift/src/hsb.rs:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9/// - Alpha - a number between 0.0 and 100.0
10#[derive(Debug, Clone, Copy, PartialEq)]
11pub struct Hsv {
12 pub hue: f32,
13 pub saturation: f32,
14 pub value: f32,
15 pub alpha: f32,
16}
17
18impl Hsv {
19 pub fn new(hue: f32, saturation: f32, value: f32, alpha: f32) -> Self {

Callers 4

with_alphaMethod · 0.85
roundMethod · 0.85
clamp_to_gamutMethod · 0.85
map_to_gamutMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected