lwip
lwip copied to clipboard
3D-Transform / Perspective
It would be really nice to change an image's perspective, similar to this feature in GIMP:

The function could look like this:
img.transform([x, y], [x, y], [x, y], [x, y], function(err, image) {
// do stuff
}
Where each [x, y] is the new position of a corner inside the current image.
Or:
img.transform(a, b, c, d, e, f, function(err, image) {
// do stuff
}
As used by HTML Canvas' setTransform
There are a bunch of Wikipedia articles about:
- I believe this is the code used by GIMP
- There are a lot of implementations when you search around