This release is a pre-release and may not be stable for production use.
Lighght: ASCII Art and Poetic Form
Lighght is a creative coding language for ASCII art and poetic form.
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.
- ASCII Art Animation
- Character-Style Generative Art
- Terminal Game Application
- Expressive Data Visualization
There are many reasons for creating Lighght, but the most important one is that I hope not only does Lighght make you love programming for fun or show a magic world to you, but also make this journey relaxing and interesting.
📎 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, Lighght allows you to describe a color like(character, foreground color, background color), which means you can express more with the extra thecharacterchannel. - Powerful and Flexible: Lighght 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 Lighght.
- Easy to Learn and Use: Lighght 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 Lighght, you can create anything interesting in you head with it and enjoy the pure joy of coding.
📦 Installation
- Supported OS: Lighght 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 Lighght --user
📺 A Simple Example
'''rect.py'''
import lighght as gh
# draw a rect
gh.full_screen()
gh.rect(0, 0, 10, 10)
# run the sketch
gh.run()
$ python3 rect.py
🛸 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
Lighght is LGPL-2.1 License.
Metadata
Release files for lighght 1.0.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lighght-1.0.0a3.tar.gz | 541.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lighght-1.0.0a3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 574.7 kB
Release files / lighght-1.0.0a3.tar.gz
| Download URL | lighght-1.0.0a3.tar.gz |
|---|---|
| Size | 541.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b826152ee64afcba64e067285a4030dca2d0ecc86359f7921e3bbf472645cc18
|
|
BLAKE2b-256 checksum How to use checksums |
7ce519664c0344bb8575afe8dbdd7c85d4722a677beb38150163aacd959d5bb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Release files / lighght-1.0.0a3-py3-none-any.whl
| Download URL | lighght-1.0.0a3-py3-none-any.whl |
|---|---|
| Size | 33.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5bdf8d460ae1285ff462e87b25d0407e8816dbeeb86e4511bb849290a837a895
|
|
BLAKE2b-256 checksum How to use checksums |
1f32d949d66bfb0d368c6b2ce6dbeceabf184530c687b0a8d14efec8681504ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|