Package: gdk
Function gdk:rgba-parse
Lambda Listgdk:rgba-parse (str) ArgumentsReturn ValueThe gdk:rgba instance with the filled in values. Details
Parses a textual representation of a color, and returns a RGBA instance filling in the red, green, blue and alpha
fields.
The string can be either one of:
Examples
(gdk:rgba-parse "LightGreen")
=> #S(GDK-RGBA
:RED 0.5647058823529412d0
:GREEN 0.9333333333333333d0
:BLUE 0.5647058823529412d0
:ALPHA 1.0d0)
(gdk-rgba-parse "#90ee90")
=> #S(GDK-RGBA
:RED 0.5647058823529412d0
:GREEN 0.9333333333333333d0
:BLUE 0.5647058823529412d0
:ALPHA 1.0d0) | See also |
2025-1-15