UNPKG

webgl-distort

Version:

WebGL-based image distortion library for perspectival/projective transforms, useful in aerial imagery processing

28 lines (21 loc) 627 B
<!DOCTYPE html> <html> <head> <title>webgl-distort</title> <script src="bower_components/glfx-js/dist/glfx.js"></script> <script src="dist/webgl-distort.js"></script> </head> <body> <p><a href="https://github.com/jywarren/webgl-distort">webgl-distort on Github</a> | See <a href="examples/large.html">very large example here</a>.</p> <img id="img" src="examples/example-1024.jpg" /> <script> (function() { warpWebGl( 'img', [0, 0, 1023, 0, 1023, 767, 0, 767], [0, 100, 1023, -50, 1223, 867, 100, 767] ); })(); </script> </body> </html>