From f4f03d49eb7e2a88f2297bcbd8ef5a70b9d42c04 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 2 Dec 2019 21:59:49 +0100 Subject: [PATCH] Some predefined colors --- emigui/src/color.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emigui/src/color.rs b/emigui/src/color.rs index 24c551aa..ec2cccb8 100644 --- a/emigui/src/color.rs +++ b/emigui/src/color.rs @@ -32,3 +32,7 @@ pub const fn gray(l: u8, a: u8) -> Color { } pub const WHITE: Color = srgba(255, 255, 255, 255); +pub const BLACK: Color = srgba(0, 0, 0, 255); +pub const RED: Color = srgba(255, 0, 0, 255); +pub const GREEN: Color = srgba(0, 255, 0, 255); +pub const BLUE: Color = srgba(0, 0, 255, 255);