reprocessing
reprocessing copied to clipboard
Can't rotate a quad??
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);
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
Oh I'm dumb, it passes those to drawLineWithMatrix and drawEllipse (which should probably be called drawEllipseWithMatrix)