We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, Mask offset error in case of scaling.
The text was updated successfully, but these errors were encountered:
Code:
import h2d.Graphics; import h2d.Mask; import hxd.App; class Main extends App { static function main() { new Main(); } override function init() { super.init(); // All right var bg = new Graphics(this.s2d); bg.beginFill(0x0000ff); bg.drawRect(0, 0, 200, 200); bg.endFill(); var mask = new Mask(200, 200, this.s2d); var g = new Graphics(mask); g.beginFill(0xff0000); g.drawRect(0, 0, 200, 200); g.endFill(); mask.scrollX = 100; // Bug var bg = new Graphics(this.s2d); bg.beginFill(0x0000ff); bg.drawRect(0, 0, 200, 200); bg.endFill(); var mask = new Mask(200, 200, this.s2d); var g = new Graphics(mask); g.beginFill(0xff0000); g.drawRect(0, 0, 200, 200); g.endFill(); mask.scrollX = 100; mask.scaleX = 0.8; mask.scaleY = 0.8; mask.y = 300; bg.scale(mask.scaleX); bg.y = mask.y; } }
Sorry, something went wrong.
No branches or pull requests
Hi, Mask offset error in case of scaling.
The text was updated successfully, but these errors were encountered: