A lightweight library for image creation and manipulation.
Project description
spssimage
A lightweight Python library for creating and manipulating images, including generating star maps with dynamic effects like twinkling stars and gradients.
Features
- Create static images with shapes, gradients, and colors.
- Generate animations (e.g., twinkling stars) and export them as GIFs.
- Apply radial gradients to simulate gas clouds.
- Lightweight and independent of external libraries like OpenCV or Pillow.
Installation
Install the library using pip:
pip install spssimage
USAGE: from spssimage.core import Canvas
Create a canvas
canvas = Canvas(100, 100, background=(0, 0, 0))
Define pixel positions for twinkling
pixel_positions = [(20, 20), (50, 50), (80, 80)]
Define the base color of the twinkling pixels
base_color = (255, 255, 255)
Save the twinkling pixels as a GIF
canvas.save_gif(pixel_positions, base_color, "twinkling_pixels.gif", frames=30, duration=100, loop=0)
2. Prepare for Deployment
Build the Package
Run the following commands to build the package:
# Ensure your virtual environment is active
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install build tools
pip install --upgrade build twine
# Build the package
python -m build
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spssimage-0.1.5.tar.gz.
File metadata
- Download URL: spssimage-0.1.5.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db06f8e0a2bc5f00e54f5ab079733a64d1abdacb638e443d94c866d52bb701e5
|
|
| MD5 |
9d9beb95f65a0c55b568acb482e44a2f
|
|
| BLAKE2b-256 |
a8799359dce7fb48c0ad162ae5ffe5bd7a7966a9833a1c63d0e7d68ea73c44cd
|
File details
Details for the file spssimage-0.1.5-py3-none-any.whl.
File metadata
- Download URL: spssimage-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94db95f9ce9782da393a55b542fe91b7cc974bd2b98a4c656f4f847f0c57918b
|
|
| MD5 |
783f348ade7abd090d0070b332b0cfe0
|
|
| BLAKE2b-256 |
1923089014ce27e750e6e9316063c0505073c6958e52550988fc071712184df2
|