struct Color
Source: colors.joule:10
struct ColorSource: colors.joule:10
const fn rgba(r: u8, g: u8, b: u8, a: u8) -> Self {Create color from RGBA
Source: colors.joule:19
const fn rgb(r: u8, g: u8, b: u8) -> Self {Create color from RGB (fully opaque)
Source: colors.joule:24
fn from_hex(hex: &str) -> Option<Self>Create color from hex string (e.g., "#FF0000" or "FF0000")
Source: colors.joule:29
fn from_hsv(h: f64, s: f64, v: f64) -> SelfCreate color from HSV
Source: colors.joule:49
fn from_hsl(h: f64, s: f64, l: f64) -> SelfCreate color from HSL
Source: colors.joule:77
fn from_floats(r: f64, g: f64, b: f64, a: f64) -> SelfCreate color from floats (0-1 range)
Source: colors.joule:104
fn to_hex(&self) -> StringTo hex string
Source: colors.joule:114
fn to_css(&self) -> StringTo CSS rgba string
Source: colors.joule:119
fn with_alpha(mut self, alpha: f64) -> SelfWith alpha
Source: colors.joule:134
fn lighten(&self, factor: f64) -> SelfLighten color
Source: colors.joule:140
fn darken(&self, factor: f64) -> SelfDarken color
Source: colors.joule:150
fn lerp(&self, other: &Color, t: f64) -> SelfInterpolate between two colors
Source: colors.joule:160
const BLACK: ColorSource: colors.joule:171
const WHITE: ColorSource: colors.joule:172
const RED: ColorSource: colors.joule:173
const GREEN: ColorSource: colors.joule:174
const BLUE: ColorSource: colors.joule:175
const YELLOW: ColorSource: colors.joule:176
const CYAN: ColorSource: colors.joule:177
const MAGENTA: ColorSource: colors.joule:178
const ORANGE: ColorSource: colors.joule:179
const PURPLE: ColorSource: colors.joule:180
const PINK: ColorSource: colors.joule:181
const BROWN: ColorSource: colors.joule:182
const GRAY: ColorSource: colors.joule:183
const LIGHT_GRAY: ColorSource: colors.joule:184
const DARK_GRAY: ColorSource: colors.joule:185
const ALICE_BLUE: ColorSource: colors.joule:188
const CORAL: ColorSource: colors.joule:189
const CRIMSON: ColorSource: colors.joule:190
const DARK_BLUE: ColorSource: colors.joule:191
const DARK_GREEN: ColorSource: colors.joule:192
const DARK_RED: ColorSource: colors.joule:193
const GOLD: ColorSource: colors.joule:194
const INDIGO: ColorSource: colors.joule:195
const LIME: ColorSource: colors.joule:196
const NAVY: ColorSource: colors.joule:197
const OLIVE: ColorSource: colors.joule:198
const SILVER: ColorSource: colors.joule:199
const STEEL_BLUE: ColorSource: colors.joule:200
const TEAL: ColorSource: colors.joule:201
const TOMATO: ColorSource: colors.joule:202
const TURQUOISE: ColorSource: colors.joule:203
const VIOLET: ColorSource: colors.joule:204
const TRANSPARENT: ColorSource: colors.joule:207
fn default() -> SelfSource: colors.joule:211
enum ColormapSource: colors.joule:222
fn map(&self, value: f64) -> ColorMap value (0-1) to color
Source: colors.joule:275
fn map_array(&self, values: &[f64]) -> Vec<Color>Map array of values
Source: colors.joule:307
fn discrete(&self, n: usize) -> Vec<Color>Generate N discrete colors
Source: colors.joule:312
fn interpolate_colormap(v: f64, colors: &[(f64, f64, f64)]) -> ColorSource: colors.joule:326
fn jet_colormap(v: f64) -> ColorSource: colors.joule:350
fn hot_colormap(v: f64) -> ColorSource: colors.joule:370
fn bone_colormap(v: f64) -> ColorSource: colors.joule:378
fn default_color_cycle() -> Vec<Color>Default color cycle (similar to matplotlib)
Source: colors.joule:482
fn tableau10() -> Vec<Color>Tableau 10 colors
Source: colors.joule:498
fn colorblind_safe() -> Vec<Color>Colorblind-safe palette
Source: colors.joule:514
fn test_color_from_hex()Source: colors.joule:535
fn test_color_to_hex()Source: colors.joule:543
fn test_colormap_viridis()Source: colors.joule:549
fn test_color_lerp()Source: colors.joule:560