Class fever.structures.color.HSL

Implemented Interfaces

IColor Cloneable

Description

Defines color using HSL componants and range.

You have to define your HSL Range before any HSL instanciation, take a lokk at example below.

   ColorSpace.HSLRANGE = HSLRange.WINDOWS;
   
   var color : HSL = new HSL( 100, 100, 100 );
 

See Also

Field Index

hue, luminance, saturation

Method Index

new HSL()
clone(), getColor(), getString(), toString()

Constructor Detail

HSL

public function HSL(h:Number, s:Number, l:Number)

Constructor.

Field Detail

hue

public hue:Number

saturation

public saturation:Number

luminance

public luminance:Number

Method Detail

getColor

public function getColor():Number

Returns color value in Number format.

Specified By

getColor() in fever.structures.IColor

getString

public function getString():String

Return color value in hexa String format.

Specified By

getString() in fever.structures.IColor

clone

public function clone():Cloneable

Returns a clone instance.

Return

Cloneable

Specified By

clone() in fever.core.Cloneable

toString

public function toString():String

Returns string representation.