Skip to content

Commit 9fa3f8f

Browse files
committed
alphaMask update.
1 parent 3a69ed9 commit 9fa3f8f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

build/phaser.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ declare module Phaser {
11611161

11621162
add(object: any): Phaser.BitmapData;
11631163
addToWorld(x?: number, y?: number, anchorX?: number, anchorY?: number, scaleX?: number, scaleY?: number): Phaser.Image;
1164-
alphaMask(source: any, mask: any, sourceRect?: Phaser.Rectangle, maskRect?: Phaser.Rectangle): Phaser.BitmapData;
1164+
alphaMask(source: any, mask: any): Phaser.BitmapData;
11651165
blendAdd(): Phaser.BitmapData;
11661166
blendColor(): Phaser.BitmapData;
11671167
blendColorBurn(): Phaser.BitmapData;

src/gameobjects/BitmapData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ Phaser.BitmapData.prototype = {
10701070
* @param {Phaser.Sprite|Phaser.Image|Phaser.Text|Phaser.BitmapData|HTMLImage|HTMLCanvasElement|string} [mask] - The object to be used as the mask. If you give a string it will try and find the Image in the Game.Cache first. This is quite expensive so try to provide the image itself. If you don't provide a mask it will use this BitmapData as the mask.
10711071
* @return {Phaser.BitmapData} This BitmapData object for method chaining.
10721072
*/
1073-
alphaMask: function (source, mask, sourceRect, maskRect) {
1073+
alphaMask: function (source, mask) {
10741074

10751075
return this.draw(mask).blendSourceAtop().draw(source).blendReset();
10761076

0 commit comments

Comments
 (0)