(as-transparent color)
Transforms a color into a transparent one when possible.
Transforms a color into a transparent one when possible.
(color->css color)
Transform a color structure into a css string.
Transform a color structure into a css string.
(read-color color-map color)
Returns a 4-elements vector containing the color components, or a string. The nil value is returned if a particular component is not specified in the input.
color-map
is a function which takes a string and returns a string in the hexadecimal RRGGBB format.
color-map
is typically a hashmap.
color
is the data structure from the parser which matched a color.
Returns a 4-elements vector containing the color components, or a string. The nil value is returned if a particular component is not specified in the input. `color-map` is a function which takes a string and returns a string in the hexadecimal RRGGBB format. `color-map` is typically a hashmap. `color` is the data structure from the parser which matched a color.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close