Skip to main content

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:

  1. Make sure you have the latest pip version:

    pip install --upgrade pip
    
  2. You can manually install dependencies first:

    pip install numpy>=1.19.0 matplotlib>=3.3.0
    
  3. 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


Download files

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

Source Distribution

pyrgelis-0.1.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

pyrgelis-0.1.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file pyrgelis-0.1.0.tar.gz.

File metadata

  • Download URL: pyrgelis-0.1.0.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

Hashes for pyrgelis-0.1.0.tar.gz
Algorithm Hash digest
SHA256 446334e9053ef52542dc9359547e43891a472fa59d1ce7dd7cf6ecf5b3aabe81
MD5 4c2b6a8c57343dec206e7bdb5fee7cd3
BLAKE2b-256 7853b58cfb2d1518aaa5175f6d3aa1a7d97f26b7fe9cbcc2ec60cc1d5be6d541

See more details on using hashes here.

File details

Details for the file pyrgelis-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyrgelis-0.1.0-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

Hashes for pyrgelis-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8543832b7908e05a730313c0a92223ab529d8d9e5259e329e619374e64b6c7c
MD5 eae5960769443c1ff5da92c29b037f0c
BLAKE2b-256 ecf0fd90c990845fb017d06c8f3859ffe52b30548d1dcc974f9f35e80d2cbf28

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