Skip to content
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

Can't rotate a quad?? #130

Open
Schmavery opened this issue Feb 28, 2019 · 2 comments
Open

Can't rotate a quad?? #130

Schmavery opened this issue Feb 28, 2019 · 2 comments

Comments

@Schmavery
Copy link
Owner

Draw.pushMatrix(env);
Draw.translate(~x=state.x, ~y=state.y, env);
Draw.rotate(state.direction, env);
Draw.quadf(~p1=(0., 50.), ~p2=(40., -50.), ~p3=(0., 0.), ~p4=(-40., -50.), env);
Draw.popMatrix(env);
@Schmavery
Copy link
Owner Author

Actually rectf uses quadf so I must have been confused.
However, quad stroke seems to be broken

~p1,
~p2,

@Schmavery
Copy link
Owner Author

Oh I'm dumb, it passes those to drawLineWithMatrix and drawEllipse (which should probably be called drawEllipseWithMatrix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant