Skip to content

请问如何对动画元素显示区域做限制? #264

Answered by drawcall
kxxoling asked this question in Q&A
Discussion options

You must be logged in to vote

can try

const mask = InkPaint.Sprite.fromImage('..../mask.png');
mask.anchor.set(0.5);
mask.x = x;
mask.y = y;
ffimage.display.mask = mask;

https://github.com/drawcall/inkpaint
run demo

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kxxoling
Comment options

@drawcall
Comment options

Answer selected by drawcall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants