Ejecta icon indicating copy to clipboard operation
Ejecta copied to clipboard

Possible ctx.transform bug (w/ example)

Open apitaru opened this issue 14 years ago • 1 comments

I think there's a bug with ctx.transform (or I might not be understanding the implementation)

To replicate the phenomenon, check out this example from Mozilla docs;

https://developer.mozilla.org/en-US/docs/Canvas_tutorial/Transformations#transform_.2F_setTransform_examples

It works in the browser, but when I try via ejecta, I get an entirely different output. If I had to guess, I'd say the matrix is not maintaining proper state when multiple transformations are applied in the same draw iteration.

apitaru avatar Nov 06 '12 22:11 apitaru

thanks! I looked at this concat line 100 times but missed the reversed order of the args.

apitaru avatar Nov 08 '12 17:11 apitaru