Packagefrocessing.color
Interfacepublic interface IFColor extends IColor
ImplementorsFColor, FColorInjector

色オブジェクトの拡張インターフェイスです.



Public Properties
 PropertyDefined by
 Inheritedalpha : Number
色の 透明度(Alpha) 値を示します.
IColor
 Inheritedalpha8 : uint
色の 透明度(Alpha) 値を 0~255 で示します.
IColor
 Inheritedb : uint
色の 青(Blue) 値を示します.
IColor
 Inheritedg : uint
色の 緑(Green) 値を示します.
IColor
  h : Number
色の 色相(Hue) 値を、色相環上のディグリーの角度( 0~360 )で示します.
IFColor
  hr : Number
色の 色相(Hue) 値を、色相環上のラジアン( 0~2PI )で示します.
IFColor
 Inheritedr : uint
色の 赤(Red) 値を示します.
IColor
  s : Number
色の 彩度(Saturation) 値を示します.
IFColor
  v : Number
色の 明度(Value・Brightness) 値を示します.
IFColor
 Inheritedvalue : uint
24bit Color (0xRRGGBB) を示します.
IColor
 Inheritedvalue32 : uint
32bit Color (0xAARRGGBB) を示します.
IColor
Public Methods
 MethodDefined by
  
gray(value_:uint, a:Number = 1.0):void
グレイ値で色を指定します.
IFColor
  
hsv(h:Number, s:Number = 1.0, v:Number = 1.0, a:Number = 1.0):void
HSV値で色を指定します.
IFColor
  
rgb(r:uint, g:uint, b:uint, a:Number = 1.0):void
RGB値で色を指定します.
IFColor
Property detail
hproperty
h:Number  [read-write]

色の 色相(Hue) 値を、色相環上のディグリーの角度( 0~360 )で示します.

Implementation
    public function get h():Number
    public function set h(value:Number):void
hrproperty 
hr:Number  [read-write]

色の 色相(Hue) 値を、色相環上のラジアン( 0~2PI )で示します.

Implementation
    public function get hr():Number
    public function set hr(value:Number):void
sproperty 
s:Number  [read-write]

色の 彩度(Saturation) 値を示します.

Implementation
    public function get s():Number
    public function set s(value:Number):void
vproperty 
v:Number  [read-write]

色の 明度(Value・Brightness) 値を示します.

Implementation
    public function get v():Number
    public function set v(value:Number):void
Method detail
gray()method
public function gray(value_:uint, a:Number = 1.0):void

グレイ値で色を指定します.

Parameters
value_:uint
 
a:Number (default = 1.0)
hsv()method 
public function hsv(h:Number, s:Number = 1.0, v:Number = 1.0, a:Number = 1.0):void

HSV値で色を指定します.

Parameters
h:Number
 
s:Number (default = 1.0)
 
v:Number (default = 1.0)
 
a:Number (default = 1.0)
rgb()method 
public function rgb(r:uint, g:uint, b:uint, a:Number = 1.0):void

RGB値で色を指定します.

Parameters
r:uint
 
g:uint
 
b:uint
 
a:Number (default = 1.0)