Package: pango
Function pango:color-parse
Lambda Listpango:color-parse (spec) ArgumentsReturn ValueThe newly created pango:color instance with the result, or nil. Details
Fill in the fields of a color from a string specification.
The string can either one of a large set of standard names, taken from the X11 rgb.txt file, or it can be a hex value in the form #rgb, #rrggbb, #rrrgggbbb or #rrrrggggbbbb where r, g, and b are hex digits of the red, green, and blue components of the color, respectively. White in the four forms is #fff, #ffffff, #fffffffff and #ffffffffffff. Examples(pango:color-parse "blue") => #S(PANGO:COLOR :RED 0 :GREEN 0 :BLUE 65535) (pango:color-to-string *) => "#00000000ffff" (pango:color-parse "white") => #S(PANGO:COLOR :RED 65535 :GREEN 65535 :BLUE 65535) (pango:color-to-string *) => "#ffffffffffff" | See also |
2025-2-15