Package | away3d.extrusions |
Class | public class Elevation |
Inheritance | Elevation Object |
Elevation
Property | Defined By | ||
---|---|---|---|
maxElevation : Number
Locks elevation factor above this level. | Elevation | ||
minElevation : Number
Locks elevation factor beneath this level. | Elevation |
Method | Defined By | ||
---|---|---|---|
Creates a generate Elevation object. | Elevation | ||
generate(sourceBmd:BitmapData, channel:String = r, subdivisionX:int = 10, subdivisionY:int = 10, scalingX:Number = 1, scalingY:Number = 1, elevate:Number = .5):Array
Generate the Array representing the mesh
| Elevation |
maxElevation | property |
maxElevation:Number
Locks elevation factor above this level. Default is 255;
public function get maxElevation():Number
public function set maxElevation(value:Number):void
minElevation | property |
minElevation:Number
Locks elevation factor beneath this level. Default is 0;
public function get minElevation():Number
public function set minElevation(value:Number):void
Elevation | () | Constructor |
public function Elevation()
Creates a generate Elevation
object.
generate | () | method |
public function generate(sourceBmd:BitmapData, channel:String = r, subdivisionX:int = 10, subdivisionY:int = 10, scalingX:Number = 1, scalingY:Number = 1, elevate:Number = .5):Array
Generate the Array representing the mesh
Parameters
sourceBmd:BitmapData — Bitmapdata. The bitmapData to read from.
| |
channel:String (default = r ) — [optional] String. The channel information to read. supported "a", alpha, "r", red, "g", green, "b", blue and "av" (averages and luminance). Default is red channel "r".
| |
subdivisionX:int (default = 10 ) — [optional] int. The subdivision to read the pixels along the x axis. Default is 10.
| |
subdivisionY:int (default = 10 ) — [optional] int. The subdivision to read the pixels along the y axis. Default is 10.
| |
scalingX:Number (default = 1 ) — [optional] Number. The scale multiplier along the x axis. Default is 1.
| |
scalingY:Number (default = 1 ) — [optional] Number. The scale multiplier along the y axis. Default is 1.
| |
elevate:Number (default = .5 ) — [optional] Number. The scale multiplier along the z axis. Default is .5.
|
Array |