Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #122 from alamboley/patch-3
Browse files Browse the repository at this point in the history
added clampMargin property to TilingSprite
  • Loading branch information
adireddy authored Apr 11, 2017
2 parents 766ff25 + c7351a6 commit 54c00c3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pixi/extras/TilingSprite.hx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,17 @@ extern class TilingSprite extends Sprite {
* @member {Point}
*/
var tilePosition:Point;

/**
* Changes frame clamping in corresponding textureTransform, shortcut
* Change to -0.5 to add a pixel to the edge, recommended for transparent trimmed textures in atlas
* @default 0.5
*/
var clampMargin:Float;

/**
* Checks if a point is inside this tiling sprite
* @param point {Point} the point to check
*/
function containsPoint(point:Point):Bool;
}
}

0 comments on commit 54c00c3

Please sign in to comment.