Projective texturing using Canvas and JavaScript

Drag the blue handles or change the settings to the right.