Liking cljdoc? Tell your friends :D

seesaw.color

Functions for creating Swing colors. Note that these are implicit in the core color options.

Functions for creating Swing colors. Note that these are implicit
in the core color options.
raw docstring

colorclj

(color s)
(color s a)
(color r g b)
(color r g b a)

Create a java.awt.Color object from args.

Examples:

; Named color with string or keyword (color "springgreen") (color :aliceblue)

; CSS-style hex color (color "#ff0000")

; Named color with alpha (color :aliceblue 128)

; CSS-style hex color with alpha (color "#ff0000" 128)

; RGB color (color 255 128 128)

; RGB color with alpha (color 255 128 128 224)

See: http://download.oracle.com/javase/6/docs/api/java/awt/Color.html http://www.w3.org/TR/css3-color/

Create a java.awt.Color object from args.

Examples:

  ; Named color with string or keyword
  (color "springgreen")
  (color :aliceblue)

  ; CSS-style hex color
  (color "#ff0000")

  ; Named color with alpha
  (color :aliceblue 128)

  ; CSS-style hex color with alpha
  (color "#ff0000" 128)

  ; RGB color
  (color 255 128 128)

  ; RGB color with alpha
  (color 255 128 128 224)

See:
  http://download.oracle.com/javase/6/docs/api/java/awt/Color.html
  http://www.w3.org/TR/css3-color/
sourceraw docstring

default-colorclj

(default-color name)

Retrieve a default color from the UIManager.

Examples:

; Return the look and feel's label foreground color (default-color "Label.foreground")

Returns a java.awt.Color instance or nil if not found.

See: http://download.oracle.com/javase/6/docs/api/javax/swing/UIManager.html#getColor%28java.lang.Object%29

Retrieve a default color from the UIManager.

Examples:

  ; Return the look and feel's label foreground color
  (default-color "Label.foreground")

Returns a java.awt.Color instance or nil if not found.

See:
  http://download.oracle.com/javase/6/docs/api/javax/swing/UIManager.html#getColor%28java.lang.Object%29
sourceraw docstring

get-rgbaclj

(get-rgba c)
source

to-colorclj

(to-color c)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close