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
The ability to scale objects non-uniformly would be a great addition, I believe this can be done by matrix transformations.
The text was updated successfully, but these errors were encountered:
You can do something similar to this, but you have to handle the matrix on your own. e.g:
var x = 5, y = 10; var poly = two.makePolygon(points); poly._matrix.manual = true; // We're gonna hijack the Two.Polygon's matrix poly._matrix.scale(x, y);
There are also skewX, skewY, translate, rotate functions.
skewX, skewY, translate, rotate
Sorry, something went wrong.
Thanks! Really good to know and thanks for the link.
No branches or pull requests
The ability to scale objects non-uniformly would be a great addition, I believe this can be done by matrix transformations.
The text was updated successfully, but these errors were encountered: