Package | net.flashpunk.masks |
Class | public class Pixelmask |
Inheritance | Pixelmask Hitbox Mask Object |
Property | Defined By | ||
---|---|---|---|
data : BitmapData
Current BitmapData mask. | Pixelmask | ||
height : int
Height. | Hitbox | ||
list : Masklist
The parent Masklist of the mask. | Mask | ||
parent : Entity
The parent Entity of this mask. | Mask | ||
threshold : uint = 1
Alpha threshold of the bitmap used for collision. | Pixelmask | ||
width : int
Width. | Hitbox | ||
x : int
X offset. | Hitbox | ||
y : int
Y offset. | Hitbox |
Method | Defined By | ||
---|---|---|---|
Pixelmask(source:*, x:int = 0, y:int = 0)
Constructor. | Pixelmask | ||
Checks for collision with another Mask. | Mask | ||
renderDebug(g:Graphics):void [override] | Pixelmask | ||
update():void [override] | Hitbox |
data | property |
data:BitmapData
Current BitmapData mask.
public function get data():BitmapData
public function set data(value:BitmapData):void
threshold | property |
public var threshold:uint = 1
Alpha threshold of the bitmap used for collision.
Pixelmask | () | Constructor |
public function Pixelmask(source:*, x:int = 0, y:int = 0)
Constructor.
Parameterssource:* — The image to use as a mask.
| |
x:int (default = 0 ) — X offset of the mask.
| |
y:int (default = 0 ) — Y offset of the mask.
|
renderDebug | () | method |
override public function renderDebug(g:Graphics):void
Parameters
g:Graphics |