| Package | org.papervision3d.materials |
| Class | public class ColorMaterial |
| Inheritance | ColorMaterial MaterialObject3D flash.events.EventDispatcher |
| Implements | IFaceDrawer |
| Subclasses | InteractiveColorMaterial |
| Method | Defined by | ||
|---|---|---|---|
|
ColorMaterial(color:Number = 0xFF00FF, alpha:Number = 1, initObject:Object = null)
The ColorMaterial class creates a solid color material.
| ColorMaterial | ||
![]() |
Creates a copy of the material.
| MaterialObject3D | |
![]() |
copy(material:MaterialObject3D):void
Copies the properties of a material.
| MaterialObject3D | |
|
drawFace3D(instance:DisplayObject3D, face3D:Face3D, graphics:Graphics, v0:Vertex2D, v1:Vertex2D, v2:Vertex2D):int
drawFace3D
| ColorMaterial | ||
|
toString():String
Returns a string value representing the material properties in the specified ColorMaterial object.
| ColorMaterial | ||
![]() |
updateBitmap():void
Updates the BitmapData bitmap from the given texture.
| MaterialObject3D | |
| ColorMaterial | () | constructor |
public function ColorMaterial(color:Number = 0xFF00FF, alpha:Number = 1, initObject:Object = null)The ColorMaterial class creates a solid color material.
Parameterscolor:Number (default = 0xFF00FF) — A BitmapData object.
|
|
alpha:Number (default = 1) — [optional] - An object that contains additional properties with which to populate the newly created material.
|
|
initObject:Object (default = null) |
| drawFace3D | () | method |
public override function drawFace3D(instance:DisplayObject3D, face3D:Face3D, graphics:Graphics, v0:Vertex2D, v1:Vertex2D, v2:Vertex2D):intdrawFace3D
Parametersinstance:DisplayObject3D |
|
face3D:Face3D |
|
graphics:Graphics |
|
v0:Vertex2D |
|
v1:Vertex2D |
|
v2:Vertex2D |
int |
| toString | () | method |
public override function toString():StringReturns a string value representing the material properties in the specified ColorMaterial object.
ReturnsString — A string.
|