Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spssimage-0.1.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spssimage-0.1.5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for spssimage-0.1.5.tar.gz
Algorithm Hash digest
SHA256 db06f8e0a2bc5f00e54f5ab079733a64d1abdacb638e443d94c866d52bb701e5
MD5 9d9beb95f65a0c55b568acb482e44a2f
BLAKE2b-256 a8799359dce7fb48c0ad162ae5ffe5bd7a7966a9833a1c63d0e7d68ea73c44cd

See more details on using hashes here.

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

Hashes for spssimage-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 94db95f9ce9782da393a55b542fe91b7cc974bd2b98a4c656f4f847f0c57918b
MD5 783f348ade7abd090d0070b332b0cfe0
BLAKE2b-256 1923089014ce27e750e6e9316063c0505073c6958e52550988fc071712184df2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page