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

Class Srgb

crates/chromashift/src/srgb.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 Srgb {
12 pub red: u8,
13 pub green: u8,
14 pub blue: u8,
15 pub alpha: f32,
16}
17
18impl Srgb {
19 pub fn new(red: u8, green: u8, blue: u8, alpha: f32) -> Self {

Callers 11

to_chromashiftMethod · 0.85
to_chromashiftMethod · 0.85
to_chromashiftMethod · 0.85
to_chromashiftMethod · 0.85
with_alphaMethod · 0.85
fromMethod · 0.85
roundMethod · 0.85
clamp_to_gamutMethod · 0.85
map_to_gamutMethod · 0.85

Calls

no outgoing calls