Sprite Sheet
A sprite is a small raster graphic (a bitmap) that represents an object such as a character, a vehicle, a projectile, etc.
Sprites are a popular way to create large, complex scenes as you can manipulate each sprite separately from the rest of the scene. This allows for greater control over how the scene is rendered, as well as over how the players can interact with the scene.
This Package is a useful tool to find Sprite Sheet of image (lower than 2048*2048).
Requirements:
Linux
Install:
#cd to your image folder
$cd image
$pip install Sprite-sheet-project==1.2.3
$python3
>>> from sprite_nvqMinh.spriteutil import SpriteSheet
>>> import timeit
>>> from PIL import Image
>>> start = timeit.timeit()
>>> image = Image.open('1.png')
>>> sprite_sheet = SpriteSheet(image)
>>> sprites, labels = sprite_sheet.find_sprites()
>>> print(len(sprites))
>>> image = sprite_sheet.create_sprite_labels_image(sprites,labels)
>>> image.save('save2.png')
>>> end = timeit.timeit()
>>> print(end)
Functional testing:
Step 1 : clone from github to your git repository
git@github.com:intek-training-jsc/sprite-sheet-nvqMinh29101992.git
Step 2 : git branch to see all branches
Step 3 : git checkout <branch_name> to see each part of this project
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Metadata
Release files for Sprite-sheet-project 1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Sprite_sheet_project-1.2.3.tar.gz | 6.4 kB | Without provenance | Details for Sprite_sheet_project-1.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Sprite_sheet_project-1.2.3-py3-none-any.whl | Python 3 | none | any | Details for Sprite_sheet_project-1.2.3-py3-none-any.whl |
Total release size: 25.7 kB
Release files / Sprite_sheet_project-1.2.3.tar.gz
| Download URL | Sprite_sheet_project-1.2.3.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f2ff89e9304064ec18b1d2d4ef693fc98fffe60037d2ba3f5b83340687097e4
|
|
BLAKE2b-256 checksum How to use checksums |
15b75409912fc3784d5221e9a3dc25c67130743e705d8bf941c26380dc7e6143
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4
|
Release files / Sprite_sheet_project-1.2.3-py3-none-any.whl
| Download URL | Sprite_sheet_project-1.2.3-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0951e5a5fec228fe2f51caf2e2c1bdc43bbb806931cd205a5f48dce979a22083
|
|
BLAKE2b-256 checksum How to use checksums |
72fe19b06339df5aa21d097009ea8dc6b9dfc0daf093ca9b17587ceb64e90e1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4
|
Security for Sprite-sheet-project 1.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.