From 90a3ed745fe3ace900b3888884470dfd9aa3a172 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Thu, 31 Dec 2020 20:19:51 +0100 Subject: [PATCH] Document grayscale colors in README --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 26464a0..3385e5d 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,13 @@ Base/Red rgb(249, 39, 7) TransparentRed rgba(255, 0, 0, 128) Base/Yellow #ff0 ``` +Grayscale colors can be produced with the `white(value)` and `white(value, alpha)` syntax. A value of zero means black while a value of 255 is pure white. + +``` +Black white(0) +MediumGray white(128) +TransparentGray white(128, 128) +``` Colors can also reference other colors by prefixing them with an `@` sign: