Packageaway3d.materials
Classpublic class ColorMaterial
InheritanceColorMaterial Inheritance WireColorMaterial Inheritance WireframeMaterial Inheritance Material Inheritance flash.events.EventDispatcher
SubclassesLayerMaterial, ShadingColorMaterial

Material for solid color drawing

Public Properties
 PropertyDefined by
 Inheritedalpha : Number
Determines the alpha value of the material
WireColorMaterial
 Inheritedcolor : uint
24 bit color value representing the material color
WireColorMaterial
  debug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
ColorMaterial
 Inheritedid : int
Unique identifier
Material
 Inheritedthickness : Number
Determines the thickness value of the wire
WireframeMaterial
 Inheritedvisible : Boolean
Indicates whether the material is visible
WireColorMaterial
 InheritedwireAlpha : Number
Determines the alpha value of the wire
WireframeMaterial
 InheritedwireColor : uint
24 bit color value representing the wire color
WireframeMaterial
Protected Properties
 PropertyDefined by
 Inherited_alpha : Number
WireColorMaterial
 Inherited_color : uint
WireColorMaterial
  _debug : Boolean
ColorMaterial
 Inheritedini : Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
WireframeMaterial
 Inherited_thickness : Number
WireframeMaterial
 Inherited_wireAlpha : Number
WireframeMaterial
 Inherited_wireColor : uint = 0x0
WireframeMaterial
Public Methods
 MethodDefined by
  
ColorMaterial
(color:* = null, init:Object = null)
Creates a new ColorMaterial object.
ColorMaterial
 Inherited
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
Material
  
clone(material:Material = null):Material
Duplicates the material properties to another material object.
ColorMaterial
 Inherited
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
Material
Protected Methods
 MethodDefined by
 Inherited
WireframeMaterial
Events
 EventSummaryDefined by
 Inherited Dispatched when the any visual aspect of the material changes.Material
Property detail
_debugproperty
protected var _debug:Boolean
debugproperty 
debug:Boolean  [read-write]

Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.

Implementation
    public function get debug():Boolean
    public function set debug(value:Boolean):void
Constructor detail
ColorMaterial()constructor
public function ColorMaterial(color:* = null, init:Object = null)Parameters
color:* (default = null) — A string, hex value or colorname representing the color of the material.
 
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
Init Parameters
 debug:Boolean (default = false)
Method detail
clone()method
public override function clone(material:Material = null):Material

Duplicates the material properties to another material object. Usage: existingMaterial = materialToClone.clone( existingMaterial ) as ColorMaterial;

Parameters
material:Material (default = null) — [optional] The new material instance into which all properties are copied. The default is ColorMaterial.

Returns
Material — The new material instance with duplicated properties applied.
Wiki link
Click to go to the wiki page for 'away3d.materials.ColorMaterial'

Code examples

Comments