Packageat.fhjoanneum.dmt.umj.core.util
Classpublic class RGBUtil
InheritanceRGBUtil Inheritance Object

Helper: RGBUtil is a entity class to handle the conversation of RGB-values from hex to unit and string.



Public Properties
 PropertyDefined By
  b : uint
RGBUtil
  g : uint
RGBUtil
  r : uint
RGBUtil
Public Methods
 MethodDefined By
  
RGBUtil(r:uint = 0, g:uint = 0, b:uint = 0)
RGB class stores a color as rgb values and allows one to output that value in various formats
RGBUtil
  
gets the octal value of the RGB object as a string
RGBUtil
  
getRGBHex():String
gets the 6 character string representing the RGB
RGBUtil
  
getUint():uint
gets the hex/oct value of the RGB object as uint
RGBUtil
  
setByHex(hex:uint):void
sets the RGB value based on a hex/oct value hex as uint
RGBUtil
  
uintToRGBHex(hex:uint):String
[static] gets a 6 character string representing the RGB
RGBUtil
Property Detail
bproperty
public var b:uint

gproperty 
public var g:uint

rproperty 
public var r:uint

Constructor Detail
RGBUtil()Constructor
public function RGBUtil(r:uint = 0, g:uint = 0, b:uint = 0)

RGB class stores a color as rgb values and allows one to output that value in various formats

Parameters
r:uint (default = 0) — the red channel
 
g:uint (default = 0) — the green channel
 
b:uint (default = 0) — the blue channel
Method Detail
getOctalString()method
public function getOctalString():String

gets the octal value of the RGB object as a string

Returns
String — the octal value of the RGB object as a string
getRGBHex()method 
public function getRGBHex():String

gets the 6 character string representing the RGB

Returns
String — a 6 character string representing the RGB
getUint()method 
public function getUint():uint

gets the hex/oct value of the RGB object as uint

Returns
uint — the hex/oct value of the RGB object as uint
setByHex()method 
public function setByHex(hex:uint):void

sets the RGB value based on a hex/oct value hex as uint

Parameters

hex:uint — the hex/oct value of the RGB object.

uintToRGBHex()method 
public static function uintToRGBHex(hex:uint):String

gets a 6 character string representing the RGB

Parameters

hex:uint — RGB hex/oct value as uint

Returns
String — a 6 character string representing the RGB hex/oct value in inputed in uint for as hex