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

added clampMargin property to TilingSprite #122

Merged
merged 1 commit into from
Apr 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}