< Back to principia-web

Principia Lua image converter

This tool can help you convert an image into code for loading it as a Principia LuaScript sprite. It converts an image into a table of pixel data that can be loaded into a sprite.

While the example loading implementation is exclusive to Principia's LuaScript API, you can implement your own loading functionality around the pixel data that is outputted for use with anything else featuring Lua scripting.

For more information about Principia Lua scripting see LuaScript on the Principia Wiki.


Select an image to convert:

Include transparency:

Base coordinates: X: , Y:

(Used to offset the sprite in the Principia canvas, to allow for several sprites within the 512x512 canvas)