reprocessing icon indicating copy to clipboard operation
reprocessing copied to clipboard

Can't rotate a quad??

Open Schmavery opened this issue 6 years ago • 2 comments

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 avatar Feb 28 '19 03:02 Schmavery

Actually rectf uses quadf so I must have been confused. However, quad stroke seems to be broken https://github.com/Schmavery/reprocessing/blob/5621793dc9a51f77d1fc15064f5e2bfc86621171/src/Reprocessing_Draw.re#L298-L299

Schmavery avatar Feb 28 '19 07:02 Schmavery

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

Schmavery avatar Mar 15 '19 05:03 Schmavery