Package | away3dlite.materials |
Class | public class ColorMaterial |
Inheritance | ColorMaterial Material flash.events.EventDispatcher |
Subclasses | WireColorMaterial |
Property | Defined by | ||
---|---|---|---|
alpha : Number
Defines the transparency of the material.
| ColorMaterial | ||
color : uint
Defines the color of the material.
| ColorMaterial | ||
debug : Boolean
Switches on the debug outlines around each face drawn with the material.
| Material |
Method | Defined by | ||
---|---|---|---|
ColorMaterial
(color:* = null, alpha:Number = 1)
Creates a new
BitmapMaterial object. | ColorMaterial |
alpha | property |
alpha:Number
[read-write]Defines the transparency of the material. Default value is 1.
Implementation public function get alpha():Number
public function set alpha(value:Number):void
color | property |
color:uint
[read-write]Defines the color of the material. Default value is random.
Implementation public function get color():uint
public function set color(value:uint):void
ColorMaterial | () | constructor |
public function ColorMaterial(color:* = null, alpha:Number = 1)
Parameters
color:* (default = null ) — The color of the material.
|
|
alpha:Number (default = 1 ) — The transparency of the material.
|