From e35dd5e30c762aa4b9d4d226457a0144213e2bd5 Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Sun, 1 Nov 2020 00:26:19 +0100 Subject: [PATCH] README: Simplify color docs --- README.md | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index be622c9..50a9e65 100644 --- a/README.md +++ b/README.md @@ -179,24 +179,11 @@ Currently supported attributes: - `underline` (`true` or `false`) - `bold` (`true` or `false`) -The currently supported color strings are: +Colors can be specified in one of three ways: -- `black` -- `red` -- `green` -- `yellow` -- `blue` -- `purple` -- `cyan` -- `white` - -ANSI color codes are also supported: - - foreground = { ansi = 4 } - -Finally, colors can also be configured by their RGB representation: - - background = { rgb = { r = 255, g = 255, b = 255 } } +- Color string (`black`, `red`, `green`, `yellow`, `blue`, `purple`, `cyan`, `white`) +- 256 color ANSI code (e.g. `foreground = { ansi = 4 }`) +- 24-bit RGB color (e.g. `background = { rgb = { r = 255, g = 255, b = 255 } }`) Example customization: