From 6c3d4e4b4ce8a4eb0b5ac012e38ca1f66af4b077 Mon Sep 17 00:00:00 2001 From: Ashkan Kiani Date: Fri, 18 Oct 2019 14:27:02 -0700 Subject: Update color functions (#13) - Add hsl, hsla, rgba, RRGGBBAA - Redo the parser for rgb,rgba,hsl,hsla codes. - Fix the trie implementation. - Bugfix and refactor alpha/error handling --- doc/colorizer-lua.txt | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'doc') diff --git a/doc/colorizer-lua.txt b/doc/colorizer-lua.txt index 9f2afda..39a97a2 100644 --- a/doc/colorizer-lua.txt +++ b/doc/colorizer-lua.txt @@ -50,15 +50,16 @@ Assumes the module is imported as `colorizer` > DEFAULT_OPTIONS = { - RGB = true; -- #RGB hex codes - RRGGBB = true; -- #RRGGBB hex codes - names = true; -- "Name" codes like Blue - rgb_fn = false; -- CSS rgb() and rgba() functions - hsl_fn = false; -- CSS hsl() and hsla() functions - css = false; -- Enable all features above. - css_fn = false; -- Enable all CSS *functions*: rgb_fn, hsl_fn + RGB = true; -- #RGB hex codes + RRGGBB = true; -- #RRGGBB hex codes + names = true; -- "Name" codes like Blue + RRGGBBAA = false; -- #RRGGBBAA hex codes + rgb_fn = false; -- CSS rgb() and rgba() functions + hsl_fn = false; -- CSS hsl() and hsla() functions + css = false; -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB + css_fn = false; -- Enable all CSS *functions*: rgb_fn, hsl_fn -- Available modes: foreground, background - mode = 'background'; -- Set the display mode. + mode = 'background'; -- Set the display mode. } < -- cgit v1.2.3-70-g09d2