Package | at.fhjoanneum.dmt.umj.core.util |
Class | public class RGBUtil |
Inheritance | RGBUtil Object |
Method | Defined 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 | ||
getOctalString():String
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 |
b | property |
public var b:uint
g | property |
public var g:uint
r | property |
public var r:uint
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
Parametersr:uint (default = 0 ) — the red channel
| |
g:uint (default = 0 ) — the green channel
| |
b:uint (default = 0 ) — the blue channel
|
getOctalString | () | method |
public function getOctalString():String
gets the octal value of the RGB object as a string
ReturnsString — the octal value of the RGB object as a string
|
getRGBHex | () | method |
public function getRGBHex():String
gets the 6 character string representing the RGB
ReturnsString — a 6 character string representing the RGB
|
getUint | () | method |
public function getUint():uint
gets the hex/oct value of the RGB object as uint
Returnsuint — 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
|
String — a 6 character string representing the RGB hex/oct value in inputed in uint for as hex
|