Packageaway3d.materials
Classpublic class ColorMaterial
ImplementsIFogMaterial, ITriangleMaterial

Material for solid color drawing

Public Properties
 PropertyDefined by
  alpha : Number
ColorMaterial
  color : uint
24 bit color value representing the material color
ColorMaterial
  visible : Boolean
[read-only] Indicates whether the material is visible
ColorMaterial
Protected Properties
 PropertyDefined by
  ini : Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
ColorMaterial
Public Methods
 MethodDefined by
  
ColorMaterial
(color:* = null, init:Object = null)
Creates a new ColorMaterial object.
ColorMaterial
  
Duplicates the material's properties to another IFogMaterial object
ColorMaterial
  
renderFog(fog:DrawFog):void
Sends the material data coupled with data from the DrawFog primitive to the render session
ColorMaterial
  
Sends data from the material coupled with data from the DrawTriangle primitive to the render session.
ColorMaterial
Property detail
alphaproperty
alpha:Number  [read-write]Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
colorproperty 
public var color:uint

24 bit color value representing the material color

iniproperty 
protected var ini:Init

Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.

visibleproperty 
visible:Boolean  [read-only]

Indicates whether the material is visible

Implementation
    public function get visible():Boolean
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####
Method detail
clone()method
public function clone():IFogMaterial

Duplicates the material's properties to another IFogMaterial object

Returns
IFogMaterial — The new object instance with duplicated properties applied
renderFog()method 
public function renderFog(fog:DrawFog):void

Sends the material data coupled with data from the DrawFog primitive to the render session

Parameters
fog:DrawFog
renderTriangle()method 
public function renderTriangle(tri:DrawTriangle):void

Sends data from the material coupled with data from the DrawTriangle primitive to the render session.

Parameters
tri:DrawTriangle
Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments