-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
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
Rotating a polygon around it's center #34
Comments
How are you constructing the The So if you use the |
Sure, here is example code:
Sorry about stupid question, I'm probably just don't understand something. |
Hm, that seems to work for me - take a look at this JSFiddle: https://jsfiddle.net/1d67zsaw/ I copied your code, drew the polygon, rotated it, and drew it again - it rotates around the center of the half-circle. |
Yeah. Thanks man. Seems like odd behavior from engine polygon draw method. Nice library. |
I have a problem. Is it possible to rotate polygon around it's center using Polygon class functions?
I'm trying to use
rotate
function, but it's return not what I expected.Here is how my polygon looks by default:
![1](https://cloud.githubusercontent.com/assets/1827843/15547658/6d0f85b4-22ad-11e6-9c84-4bbdfd042691.png)
After
![2](https://cloud.githubusercontent.com/assets/1827843/15547707/aa8e4bbe-22ad-11e6-8897-b34a949dedc3.png)
rotate(1)
:The text was updated successfully, but these errors were encountered: