Skip to main content

A text-based 2D graphics library. Handcrafted by Senthil Arasu J

Project description

Framer

A lightweight Python-based 2D graphics library.

Note: This library is Windows-specific as it uses msvcrt and the mode con command to control the console.


✨ Features

  • Dynamic console window resizing and color setting
  • ASCII-based frame rendering engine
  • Object placement by coordinates
  • Frame-rate control using fps
  • Minimal keyboard input capture (msvcrt.getch())

📦 Installation

Use pip to install: pip install framer43


🧠 How It Works

Framer renders frames using a list of [x, y, char] objects and manually calculates spacing between characters to simulate positions in the terminal. It flushes each frame to the standard output with optional FPS delay.


📘 Usage

Example

from framer import Framer

f = Framer()
f.initwin(ar="16:9", scale=5, color="0A", fps=10)  # Sets resolution and color

# Animate a simple horizontal line moving across
for i in range(10, f.cols - 10):
    f.addObj(i, f.lines // 2, "*")  # Middle row
    if f.renderFrame() == 'q':
        break

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

framer43-0.0.0.0.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.

framer43-0.0.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file framer43-0.0.0.0.tar.gz.

File metadata

  • Download URL: framer43-0.0.0.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for framer43-0.0.0.0.tar.gz
Algorithm Hash digest
SHA256 3812840862b90fd765e9a43ca6cf2590133baad19bdd35ed833c724c11436388
MD5 6286e8827b47b6a7feed0e761b0a8318
BLAKE2b-256 4ffe039eb146acbae642e493a1ae6c7e63c728263d6ad0167ac21f63bd7c3ae6

See more details on using hashes here.

File details

Details for the file framer43-0.0.0.0-py3-none-any.whl.

File metadata

  • Download URL: framer43-0.0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for framer43-0.0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 201d06b07c0a4a8c9c577057eb4c7d82a3324c8cda52846b479881438f3192e4
MD5 fb745751434456274eb4acffeceb42d6
BLAKE2b-256 8e123368a886e520bb7b11d98074b5e94d8b7b82a1f1f4718f1e5971e1f8e455

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