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 allows for viewing all attributes of a .pyxel
file, modifying values, and repacking the file
into its original format for use within PyxelEdit.
Examples
Editing tile width and height on an image.
from pyxi import PyxelImage
p = PyxelImage('test_8px.pyxel') # assume the tiles are 8x8
p.extract() # extracts all the files into the converted/ directory (seperated layers, json data)
Loading a .pyxel
file as a texture in arcade
.
import arcade
from pyxi import PyxelImage
p = PyxelImage('test_8px.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.4.tar.gz
(5.9 kB
view details)
Built Distribution
pyxi-0.1.4-py3-none-any.whl
(8.4 kB
view details)
File details
Details for the file pyxi-0.1.4.tar.gz
.
File metadata
- Download URL: pyxi-0.1.4.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94ff506186a1ecce5bc794513144f4e8dbef2efcb8a5f6db98277ec93fb03cd6 |
|
MD5 | c96bf2220bdc3e6258ff3b2f999029c8 |
|
BLAKE2b-256 | 7f1031190a3a5fbfa41b93b903375e379257992dd7987e1c60813db4f7bc8c10 |
File details
Details for the file pyxi-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: pyxi-0.1.4-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f141e6119e247d69b4ab8b050940ee0b3779e7dd4bb942659714488586fd58c3 |
|
MD5 | 3ab55e8e43d18f0e2b51d444e739b62c |
|
BLAKE2b-256 | e4936234ad3d3b33e75078cccaa991f262c6a407b86c4caf31ea59f2b92505da |