Skip to main content

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)

Source distribution for Sprite-sheet-project 1.2.3
File Size Uploaded
Sprite_sheet_project-1.2.3.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Sprite-sheet-project 1.2.3
File Interpreter ABI Platform
Sprite_sheet_project-1.2.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.2.3 This release

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page