helma.Color

Object
   |
   +--helma.Color


Instances of this class provide methods for converting HTML color names into their corresponding RGB values and vice versa, or retrieving single RGB color values.
Defined in Color.js



Constructor Summary
helma.Color(<Number|String> R, <Number> G, <Number> B)
            Constructs a new instance of helma.Color.
 
Properties Summary
<static>  <final> Object COLORNAMES
          Contains the hexadecimal values of named colors.
<static>  <final> Object COLORVALUES
          Contains the color names for specific hex values
 
Methods Summary
 String getName()
           Returns the trivial name of this color
 String toString()
           Returns the hexidecimal value of this color (without a leading hash sign).
 Number valueOf(<String> channel)
           Returns the decimal value of this color, or of a specified color channel.
<static>  helma.Color fromHsl(<Number> H,<Number> S,<Number> L)
           Creates a new helma.Color instance based on a HSL color representation.
<static>  helma.Color fromName(<String> name)
           Creates a new helma.Color instance based on a color name.

Constructor Detail

helma.Color

helma.Color(<Number|String> R, <Number> G, <Number> B)

Properties Detail

COLORNAMES

<static> <final> Object COLORNAMES

COLORVALUES

<static> <final> Object COLORVALUES

Method Detail

getName

String getName()

toString

String toString()

valueOf

Number valueOf(<String> channel)

fromHsl

<static> helma.Color fromHsl(<Number> H,<Number> S,<Number> L)

fromName

<static> helma.Color fromName(<String> name)


Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007