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.