Skip to main content

The creative coding language for ASCII Art and Poetic Form.

Project description

Charming.py: Character Terminal Art Programing

Charming.py is a creative coding language designed for Character Terminal Art Programming.

It is currently written in Python and provides Processing-like APIs, which aims to help artists, designers, educators, beginners, and anyone else to easily create following visual effects in terminal.

There are many reasons for creating Charming.py, but the most important one is that I hope not only does Charming.py make you love programming for fun or show a magic world to you, but also make this journey relaxing and interesting.

cover

📎 Links

✨ Features

  • Highly Expressive: Unlike traditional drawing system or tool using three numerical channels ((r, g, b) or (h, s, v)) to describe a color, Charming.py allows you to describe a color like (character, foreground color, background color), which means you can express more with the extra the character channel.
  • Powerful and Flexible: Charming.py is not as same as urwid or click to build console line interface. Actually it more like asciimatics, art or tcharts to draw some visual effects in the terminal but with more flexibility. Instead of drawing limited and predefined shapes or effects, you can draw some basic primitives, custom shapes, curves, images, typography with transforms (translate, rotate, shear) and even events (mouse, keyboard) in Charming.py.
  • Easy to Learn and Use: Charming.py is very beginner-friendly, because of Python's simple syntax and Processing's concise APIs. It will be more easier if you are already familiar with them. Once you've master Charming.py, you can create anything interesting in you head with it and enjoy the pure joy of coding.
Charming

📦 Installation

  • Supported OS: Charming.py currently only supports MacOS, though it should also work for any other platform that provides a working curses implementation. It soon will support Windows and run in Modern Browsers.
  • Python: 3.6/3.7/3.8
$ pip3 install charming --user

📺 A Simple Example

'''rect.py'''
import charming as cm

# draw a rect
cm.full_screen()
cm.rect(0, 0, 10, 10)

# run the sketch
cm.run()
$ python3 rect.py

get started

🛸 Future work

  • Using Rust as backend to run in browser and support multiple OS, using both JavaScript and Python as frontend.
  • Add more API to be more expressive.
  • Build a community and online playground like OpenProcessing.

💳 License

Charming.py is LGPL-2.1 License.

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

lighght-1.0.0a2.tar.gz (541.6 kB view details)

Uploaded Source

Built Distribution

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

lighght-1.0.0a2-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

Details for the file lighght-1.0.0a2.tar.gz.

File metadata

  • Download URL: lighght-1.0.0a2.tar.gz
  • Upload date:
  • Size: 541.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for lighght-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 833748b740f6128d0a6f5a5c4a0d1638cbc194df85d25d96877e240d1ac13f88
MD5 c355615bc8d385e9a40f686a13e8d3ee
BLAKE2b-256 88725819b9d196c19bd8679c1e064a147f9e059c974c374d584eeb669a6cb330

See more details on using hashes here.

File details

Details for the file lighght-1.0.0a2-py3-none-any.whl.

File metadata

  • Download URL: lighght-1.0.0a2-py3-none-any.whl
  • Upload date:
  • Size: 33.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for lighght-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 8c8842c20e7ff05de2a20236343d398eb32971ed60060c315429cdaff75040be
MD5 0da436547b80c0f3c978edc5f0ee4b08
BLAKE2b-256 bbc2216da1fb046fcd9c8d24776e3e459a44ba4d7645ec2b7347f0bdbe0ffc9b

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