Rgelis floating in a surreal space. You can only win.
Project description
PyRgelis
A simulation of Rgelis floating in a surreal space. You can only win.
Description
Far beyond the known realms of physics and reason, there exists a surreal, dreamlike world where the Rgelis drift eternally. These enigmatic, jellyfish-like beings float through the ethereal currents of their dimension, changing colors as they react to unseen cosmic forces.
Each Rgeli has a personality of its own, propelled by whimsical movements and ever-shifting hues. No one truly knows their purpose, but some say they are echoes of forgotten thoughts, living in an endless dance across the fabric of space.
Installation
Standard Installation
Install PyRgelis with pip:
pip install pyrgelis
This will automatically install the required dependencies (NumPy and Matplotlib).
Development Installation
For development purposes, you can clone the repository and install from source:
git clone https://github.com/username/pyrgelis.git
cd pyrgelis
pip install -e .
Troubleshooting Dependencies
If you encounter issues with dependencies:
-
Make sure you have the latest pip version:
pip install --upgrade pip
-
You can manually install dependencies first:
pip install numpy>=1.19.0 matplotlib>=3.3.0
-
On some systems, you might need additional libraries for Matplotlib to work correctly. For example, on Ubuntu:
sudo apt-get install python3-tk
Usage
Command Line
After installation, you can run PyRgelis directly from the command line:
pyrgelis
Command Line Options
pyrgelis [-h] [--count COUNT] [--width WIDTH] [--height HEIGHT]
[--background BACKGROUND] [--no-welcome]
--count,-c: Initial number of Rgelis (default: 5)--width,-w: Width of the space (default: 10)--height,-H: Height of the space (default: 10)--background,-b: Background color (default: black)--no-welcome: Skip the welcome message
Controls
- Mouse Click: Create a new Rgeli at that position
- Space Bar: Pause/Resume the simulation
- 'c' Key: Clear all Rgelis
- 'a' Key: Add 5 random Rgelis
As a Python Module
You can also use PyRgelis in your own Python projects:
from pyrgelis import RgelisGame
# Create a game with 10 initial Rgelis
game = RgelisGame(num_rgelis=10)
# Run the simulation
game.run()
Features
- Vibrant, colorful jellyfish-like creatures
- Emergent behavior through simple interaction rules
- Interactive summoning of new creatures
- Score tracking for interactions
Advanced Usage
You can create your own custom Rgeli entities:
from pyrgelis import Rgeli, RgelisGame
import numpy as np
# Create a custom Rgeli
custom_rgeli = Rgeli(
x=5.0, # X position
y=5.0, # Y position
color='purple', # Color
size=100 # Size
)
# Create a game with custom settings
game = RgelisGame(
num_rgelis=0, # Start with no Rgelis
width=15, # Custom width
height=15, # Custom height
background_color='darkblue' # Custom background
)
# Add our custom Rgeli
game.rgelis.append(custom_rgeli)
# Add some random Rgelis too
for _ in range(5):
game.spawn_random_rgeli()
# Run the simulation
game.run()
Requirements
- Python 3.6+
- NumPy (>= 1.19.0)
- Matplotlib (>= 3.3.0)
These dependencies will be automatically installed when you install PyRgelis using pip.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Inspired by the beauty of jellyfish and other bioluminescent creatures
- Created for those who appreciate the mesmerizing qualities of generative art
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 pyrgelis-0.1.1.tar.gz.
File metadata
- Download URL: pyrgelis-0.1.1.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30850d64e1140e9682be519a20cda3553d6aecc3cab659fba1c4e5a6624b86b6
|
|
| MD5 |
fb2117d7e6a9fb1e2837db836105f37f
|
|
| BLAKE2b-256 |
4401695a62e637dd303946be5c48c22d7ccf4c78790e0d2e878a86d22c232e11
|
File details
Details for the file pyrgelis-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyrgelis-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac11edcc90c91ff4cb068112cbc82c945dea0096cb628bee5e17eb4bc1bb85ba
|
|
| MD5 |
f0b9706a30eab239af492b198485c9b2
|
|
| BLAKE2b-256 |
1dc5dc5d6df66d94d2ca09f735cd2ff79aa8eafb73f3b636208429963045b405
|