| Package | away3d.materials |
| Class | public class WireColorMaterial |
| Implements | ITriangleMaterial |
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number
Determines the alpha value of the material
| WireColorMaterial | ||
| color : int
Determines the color value of the material
| WireColorMaterial | ||
| visible : Boolean [read-only]
Indicates whether the material is visible
| WireColorMaterial | ||
| width : Number
Determines the wire width
| WireColorMaterial | ||
| wirealpha : Number
Determines the alpha value of the border wire
| WireColorMaterial | ||
| wirecolor : int
Determines the color value of the border wire
| WireColorMaterial | ||
| Property | Defined 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.
| WireColorMaterial | ||
| Method | Defined by | ||
|---|---|---|---|
|
WireColorMaterial
(color:* = null, init:Object = null)
Creates a new
WireColorMaterial object. | WireColorMaterial | ||
|
Sends data from the material coupled with data from the
DrawTriangle primitive to the render session. | WireColorMaterial | ||
| alpha | property |
public var alpha:Number
Determines the alpha value of the material
| color | property |
public var color:int
Determines the color value of the material
| ini | property |
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.
| visible | property |
visible:Boolean [read-only]Indicates whether the material is visible
Implementation public function get visible():Boolean
| width | property |
public var width:Number
Determines the wire width
| wirealpha | property |
public var wirealpha:Number
Determines the alpha value of the border wire
| wirecolor | property |
public var wirecolor:int
Determines the color value of the border wire
| WireColorMaterial | () | constructor |
public function WireColorMaterial(color:* = null, init:Object = null)
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.
|
alpha:Number (default = 1, min:0, max:1) | |
wirecolor:Color (default = 0x000000) | |
width:Number (default = 1, min:0) | |
wirealpha:Number (default = 1, min:0, max:1) |
| renderTriangle | () | method |
public function renderTriangle(tri:DrawTriangle):void
Sends data from the material coupled with data from the DrawTriangle primitive to the render session.
tri:DrawTriangle |
Changing Materials and Outline based on V1.9.2
objA.material = Cast.material("newma");
//change bitmap from library
objA.material = Cast.material({color:"blue", lighting:true});
//change light color
objA.material = new WireColorMaterial();
objA.material = new ShadingColorMaterial( );
objA.outline = new WireframeMaterial("yellow", {width:20});//outline size