Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

robertwayne/pyxi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pyxi

PyPI version Documentation Status

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)

About

A small library for interacting with .pyxel files from PyxelEdit.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published