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
Defines the transparency of the material. Default value is 1.
public function get alpha():Number
public function set alpha(value:Number):void
color | property |
color:uint
Defines the color of the material. Default value is random.
public function get color():uint
public function set color(value:uint):void
ColorMaterial | () | Constructor |
public function ColorMaterial(color:* = null, alpha:Number = 1)
Creates a new BitmapMaterial
object.
color:* (default = null ) — The color of the material.
| |
alpha:Number (default = 1 ) — The transparency of the material.
|