(defcolor name color-def & args)Define a color by name. Automatically detects the format:
Examples: (defcolor my-red "#ff0000") (defcolor my-blue "ff0000ff") (defcolor my-green 0 255 0) (defcolor my-transparent 255 0 0 128)
Define a color by name. Automatically detects the format: - String: hex color (e.g., "#ff4488" or "ff4488dd" with alpha) - Numbers: RGB or RGBA values for p-color (e.g., 255 0 0 or 255 0 0 128) Examples: (defcolor my-red "#ff0000") (defcolor my-blue "ff0000ff") (defcolor my-green 0 255 0) (defcolor my-transparent 255 0 0 128)
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 |