mirror of
https://github.com/keharriso/love-nuklear.git
synced 2025-09-10 16:17:47 -04:00
Update color construction and parsing functions
parent
974901eada
commit
4c8e36aa0e
1 changed files with 8 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue