Public declaration syntax from forge-rs/crates/forge-identity/src/glyph/palette.rs Original source SHA-256: 8624b8f4d25846bb3aa37a9907674b03e03ab40b1c0c2c0579c7e97dd5492fcf Function bodies and constant values are omitted. This is not the complete implementation. Source line 31 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] pub struct GlyphColor { /// Red channel (0-255). pub r: u8, /// Green channel (0-255). pub g: u8, /// Blue channel (0-255). pub b: u8 } Source line 42 pub fn rgb(r: u8, g: u8, b: u8) -> Self; Source line 56 pub fn to_hex(&self) -> String; Source line 94 pub fn lerp(a: &GlyphColor, b: &GlyphColor, t: f64) -> Self; Source line 134 #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub struct GlyphPalette { /// Primary identity color. pub primary: GlyphColor, /// Secondary identity color (hue-offset from primary). pub secondary: GlyphColor, /// Accent color for kind region and highlights. pub accent: GlyphColor, /// Background color (dark, desaturated primary). pub background: GlyphColor } Source line 178 pub fn derive_palette(payload: &[u8], kind: GlyphEntityKind) -> GlyphPalette; Source line 251 pub fn derive_palette_from_did(did: &str, kind: GlyphEntityKind) -> GlyphPalette;