Metadata-Version: 2.1
Name: ImgGameLib
Version: 0.1.0
Summary: A lightweight wrapper around pillow for making games with images
Home-page: https://github.com/aaguy-hue/ImgGameLib
Author: aaguy-hue
Author-email: aaditmathur6.extra@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/aaguy-hue/ImgGameLib/issues
Platform: UNKNOWN
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: pillow

# ImgGameLib
A light wrapper around [pillow](https://pillow.readthedocs.io/en/stable/) designed for the making of games through generating images.

This is useful in several scenarios in which you are very limited, such as with discord bots.

## Example
```py
# Import the module
import ImgGameLib as igl

# Create a canvas
canvas = igl.Canvas(
    100,
    100,
    bg_color="#99CDDE",
    gif=True
)

# Create a 100x100 rectangle at (50,50) and draw it
rect = igl.Rectangle(
    50,
    50,
    100,
    100
)
rect.draw(canvas)

# Move the rectangle by 5 pixels on the x axis
rect.move(x=5)

# Save the first frame to frame_1.png, and discard all animated frames
canvas.save("frame_1.png", no_gif=True)
canvas.discard()

# Move the rectangle by 10 pixels on the x axis, 10 times
for _ in range(10):
    rect.move(x=10)

# Save the animation after that to animation.gif
canvas.save("animation.gif", loop=True, duration=20)
```
See the examples folder for more examples.


