(color-seq colors)handy for creating sequences of color changes
handy for creating sequences of color changes
(faint c a)Return the same RGB color with a new alpha value (0-255). Alpha may be a number or a 1-2 digit hex string.
Return the same RGB color with a new alpha value (0-255). Alpha may be a number or a 1-2 digit hex string.
(hex-char-to-int c)Convert a single hex character to integer
Convert a single hex character to integer
(hex-color hex-str)(hex-color hex-str alpha)Convert a hex color string to p-color format. Supports formats: #RGB, #RRGGBB, #RGBA, #RRGGBBAA, RGB, RRGGBB, RGBA, RRGGBBAA If hex string includes alpha (4 or 8 digits), it will be used. Otherwise, optional alpha parameter (0-255, defaults to 255)
Convert a hex color string to p-color format. Supports formats: #RGB, #RRGGBB, #RGBA, #RRGGBBAA, RGB, RRGGBB, RGBA, RRGGBBAA If hex string includes alpha (4 or 8 digits), it will be used. Otherwise, optional alpha parameter (0-255, defaults to 255)
(hex-pair-to-int hex-str)Convert a pair of hex characters to integer (0-255)
Convert a pair of hex characters to integer (0-255)
(paint stroke)(paint stroke fill)(paint stroke fill thick)Creates a style map with stroke, optional fill, and stroke-weight.
Arities: (paint stroke) - sets stroke only, no fill, default stroke-weight 1 (paint stroke :nofill) - sets stroke only, no fill, default stroke-weight 1 (paint stroke :nofill weight) - sets stroke only, no fill, explicit stroke-weight (paint stroke fill) - sets stroke and fill, default stroke-weight 1 (paint stroke fill weight) - sets stroke, fill, and stroke-weight
Creates a style map with stroke, optional fill, and stroke-weight. Arities: (paint stroke) - sets stroke only, no fill, default stroke-weight 1 (paint stroke :nofill) - sets stroke only, no fill, default stroke-weight 1 (paint stroke :nofill weight) - sets stroke only, no fill, explicit stroke-weight (paint stroke fill) - sets stroke and fill, default stroke-weight 1 (paint stroke fill weight) - sets stroke, fill, and stroke-weight
(parse-hex-string hex-str)Parse a hex color string to RGB or RGBA values. Supports formats: #RGB, #RRGGBB, #RGBA, #RRGGBBAA, RGB, RRGGBB, RGBA, RRGGBBAA Returns [r g b] for 3/6 digit formats, [r g b a] for 4/8 digit formats
Parse a hex color string to RGB or RGBA values. Supports formats: #RGB, #RRGGBB, #RGBA, #RRGGBBAA, RGB, RRGGBB, RGBA, RRGGBBAA Returns [r g b] for 3/6 digit formats, [r g b a] for 4/8 digit formats
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |