A useful tool to find sprite image
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Sprite_sheet_project-1.2.3.tar.gz
.
File metadata
- Download URL: Sprite_sheet_project-1.2.3.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f2ff89e9304064ec18b1d2d4ef693fc98fffe60037d2ba3f5b83340687097e4 |
|
MD5 | c16f9f7213f13aa0a40055e72192c838 |
|
BLAKE2b-256 | 15b75409912fc3784d5221e9a3dc25c67130743e705d8bf941c26380dc7e6143 |
File details
Details for the file Sprite_sheet_project-1.2.3-py3-none-any.whl
.
File metadata
- Download URL: Sprite_sheet_project-1.2.3-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0951e5a5fec228fe2f51caf2e2c1bdc43bbb806931cd205a5f48dce979a22083 |
|
MD5 | 348854c8f489bb598aee55c48fd2191b |
|
BLAKE2b-256 | 72fe19b06339df5aa21d097009ea8dc6b9dfc0daf093ca9b17587ceb64e90e1e |