I need to simulate the effect of skewing an image, like Photoshop, using Javascript. Do you guys know how to do that in Javascript?
What kind of geometry calculation is applied to the <canvas> context? I can’t use CSS for this, because it has to be modified dynamically.

I found the solution: http://www.w3schools.com/html5/playcanvas.asp?filename=playcanvas_transformb&preval=1,0,0,1,0,0