From 9e1117019ae5ae61edf15c7148134bd5931bd985 Mon Sep 17 00:00:00 2001 From: Juan Campa Date: Tue, 4 Feb 2025 04:29:26 -0500 Subject: [PATCH] Add `Color32::CYAN` and `Color32::MAGENTA` (#5663) I often find myself reaching out for these two colors so I figured I'd just add the constants next to `YELLOW` to have CMYK --- crates/ecolor/src/color32.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ecolor/src/color32.rs b/crates/ecolor/src/color32.rs index c38a8d6b..52e32266 100644 --- a/crates/ecolor/src/color32.rs +++ b/crates/ecolor/src/color32.rs @@ -56,7 +56,10 @@ impl Color32 { pub const RED: Self = Self::from_rgb(255, 0, 0); pub const LIGHT_RED: Self = Self::from_rgb(255, 128, 128); + pub const CYAN: Self = Self::from_rgb(0, 255, 255); + pub const MAGENTA: Self = Self::from_rgb(255, 0, 255); pub const YELLOW: Self = Self::from_rgb(255, 255, 0); + pub const ORANGE: Self = Self::from_rgb(255, 165, 0); pub const LIGHT_YELLOW: Self = Self::from_rgb(255, 255, 0xE0); pub const KHAKI: Self = Self::from_rgb(240, 230, 140);