Liking cljdoc? Tell your friends :D

patterning.macros


defcolorclj/smacro

(defcolor name color-def & args)

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)

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)
sourceraw docstring

optional-styled-primitiveclj/smacro

(optional-styled-primitive args body)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close