A small library for interacting with `.pyxel` files from PyxelEdit.
Project description
Pyxi
pyxi
is a small library for interfacing with PyxelEdit .pyxel
files in an object-oriented manner.
Currently it is extremely barebones, only letting you access all the values of your .pyxel
files and loading a
PIL.Image.Image
object from a single tile. In the future, it should allow you to programatically modify image
values, save files, and handle export/import needs; both single file and large tilesets.
Example
Loading a .pyxel
file as a texture in arcade
.
p = PyxelImage('assets/wizard.pyxel')
texture = p.get_tile() # returns a Pillow Image object
player = arcade.Sprite(scale=4)
player.texture = arcade.Texture(name='S8dhS7dja', image=texture)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyxi-0.1.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
pyxi-0.1.0-py3-none-any.whl
(4.8 kB
view hashes)