A library by David Bouchard for the programming environment Processing. Last update, 09/09/2015.

Keystone is a video projection mapping library for Processing. Currently, it allows you to warp your Processing sketches onto any flat surface by using corner pin keystoning, regardless of your projector's position and orientation. The goal is to eventually expand this library to enable more advanced projection mapping, such as projecting on 3D models or curved surfaces and edge blending of multiple projector screens. 

Thank you to the following contributors for features added to Keystone:
- fixed the XML load/save once more (Machiel Veltkamp)
- improved perspective calculation using JAI (Eduardo Moriana)
- fixed the XML load/save functionality (Andres Colubri)
- added manual control for the surface's corners (Daniel Wiedemann)



Download Keystone version 006 (6) in .zip format.


Unzip and put the extracted Keystone folder into the libraries folder of your processing sketches. Reference and examples are included in the Keystone folder.

If you are running this on Windows or Linux, you will need to also install the Java Advanced Imaging library for your platform.

Keywords projection mapping, corner pin keystoning

Reference. Have a look at the javadoc reference here. a copy of the reference is included in the .zip as well.

Source. The source code of Keystone is available at GitHub, and its repository can be browsed here.


Find a list of examples in the current distribution of Keystone, or have a look at them by following the links below.


Platform osx
Processing 3.05a
Dependencies Java Advanced Imaging