Packageaway3dlite.materials
Classpublic class ColorMaterial
InheritanceColorMaterial Inheritance Material Inheritance flash.events.EventDispatcher
SubclassesWireColorMaterial

Basic color material.

Public Properties
 PropertyDefined by
  alpha : Number
Defines the transparency of the material.
ColorMaterial
  color : uint
Defines the color of the material.
ColorMaterial
 Inheriteddebug : Boolean
Switches on the debug outlines around each face drawn with the material.
Material
Public Methods
 MethodDefined by
  
ColorMaterial
(color:* = null, alpha:Number = 1)
Creates a new BitmapMaterial object.
ColorMaterial
Events
 EventSummaryDefined by
 Inherited Dispatched when the material becomes visible in a view.Material
 Inherited Dispatched when the material becomes invisible in a view.Material
Property detail
alphaproperty
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
colorproperty 
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
Constructor detail
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.
Init Parameters
Wiki link
Click to go to the wiki page for 'away3dlite.materials.ColorMaterial'

Code examples

Comments