by mysterydip · 4y ago · 0 comments
Unfortunately Safari said it would be too much effort on their end to change the 2x3 matrices on the backend to 4x4 matrices to support this.
https://github.com/fserb/canvas2D/blob/master/spec/perspecti...
If you raise an army of angry webdevs to yell at other browser implementers, I would be so very happy.
Seems like you could implement your own in code. It would not be fast though — having to walk each pixel in the canvas buffer, apply the transform to grab a pixel from another buffer, then assign the transformed buffer back to the canvas.
The current solution is to "roll your own" functionality. It is doable - for instance I've added such functionality to my canvas library[2]. The results work, but are slower than ideal.