| Package | sandy.materials |
| Class | public final class ColorMaterial |
| Inheritance | ColorMaterial Material |
| Implements | IAlphaMaterial |
Used to show colored faces, possibly with lines at the edges of the faces.
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number
Indicates the alpha transparency value of the material.
| ColorMaterial | ||
![]() | attributes : MaterialAttributes
The attributes of this material.
| Material | |
| color : Number
The color of this material.
| ColorMaterial | ||
![]() | filters : Array
The array of filters for this material.
| Material | |
![]() | flags : uint
Contains specific material flags.
| Material | |
![]() | id : Number
The unique id of this material.
| Material | |
![]() | lightingEnable : Boolean = false
Specifies if the material can receive light and have light attributes applied to it.
| Material | |
![]() | modified : Boolean
The modified state of this material.
| Material | |
![]() | repeat : Boolean = true
The repeat property.
| Material | |
![]() | type : MaterialType
The material type of this material.
| Material | |
![]() | useVertexNormal : Boolean = false
Specify if the material use the vertex normal information.
| Material | |
| Method | Defined by | ||
|---|---|---|---|
|
ColorMaterial(p_nColor:uint = 0x00, p_nAlpha:Number = 1, p_oAttr:MaterialAttributes = null)
Creates a new ColorMaterial.
| ColorMaterial | ||
![]() |
Calls begin method of the MaterialAttributes associated with this material.
| Material | |
![]() |
Calls finish method of the MaterialAttributes associated with this material.
| Material | |
![]() |
Calls init method of the MaterialAttributes associated with this material.
| Material | |
![]() |
Renders the polygon dress in this material.
| Material | |
![]() |
Renders the sprite dress in this material.
| Material | |
![]() |
Calls unlink method of the MaterialAttributes associated with this material.
| Material | |
| alpha | property |
alpha:Number [read-write]Indicates the alpha transparency value of the material. Valid values are 0 (fully transparent) to 1 (fully opaque).
The default value is 1.0.
public function get alpha():Number
public function set alpha(value:Number):void
| color | property |
color:Number [read-write]The color of this material.
The default value is 0x00.
public function get color():Number
public function set color(value:Number):void
| ColorMaterial | () | constructor |
public function ColorMaterial(p_nColor:uint = 0x00, p_nAlpha:Number = 1, p_oAttr:MaterialAttributes = null)Creates a new ColorMaterial.
Parametersp_nColor:uint (default = 0x00) — The color for this material in hexadecimal notation.
|
|
p_nAlpha:Number (default = 1) — The alpha transparency value of the material.
|
|
p_oAttr:MaterialAttributes (default = null) — The attributes for this material.
|
See also