From 4c8e36aa0e2fe42373daec02479c32ca75e69efd Mon Sep 17 00:00:00 2001 From: Kevin Harrison Date: Thu, 13 Dec 2018 23:23:46 +0000 Subject: [PATCH] Update color construction and parsing functions --- Documentation.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation.md b/Documentation.md index 84e7aa3..d7fa37b 100644 --- a/Documentation.md +++ b/Documentation.md @@ -613,19 +613,19 @@ Return `true` if the given mouse button was released in the given screen bounds ### Colors Some styles and widgets accept a "color string" parameter. This is a string of the format '#RRGGBB' or '#RRGGBBAA', where RR, GG, BB, and AA are each a byte in hexadecimal. Either use these strings directly or convert to and from the string format via the following functions. -#### color = ui:colorRGBA(r, g, b) -#### color = ui:colorRGBA(r, g, b, a) +#### color = nuklear.colorRGBA(r, g, b) +#### color = nuklear.colorRGBA(r, g, b, a) Construct a color string from the given components (each from 0 to 255). Alpha (`a`) defaults to 255. -#### color = ui:colorHSVA(h, s, v) -#### color = ui:colorHSVA(h, s, v, a) +#### color = nuklear.colorHSVA(h, s, v) +#### color = nuklear.colorHSVA(h, s, v, a) Construct a color string from the given components (each from 0 to 255). Alpha (`a`) defaults to 255. -#### r, g, b, a = ui:colorParseRGBA(color) -Split a color string into its number components. +#### r, g, b, a = nuklear.colorParseRGBA(color) +Split a color string into its number components (each from 0 to 255). -#### h, s, v, a = ui:colorParseHSVA(color) -Split a color string into its number components. +#### h, s, v, a = nuklear.colorParseHSVA(color) +Split a color string into its number components (each from 0 to 255). #### ui:styleDefault() Reset color styles to their default values.