A minimal Python library for live coding visual scenes using desktop windows
Project description
window-art
A minimal Python library for live coding visual scenes using desktop windows.
Installation
pip install window-art
Quick Start
import window_art as wa
with wa.run():
win = wa.window(100, 100, 200, 200, color="coral")
wa.move(win, 500, 300, duration=2.0, ease="ease_out")
wa.wait(1)
Examples
import window_art as wa
with wa.run():
# Create windows
win = wa.window(100, 100, 200, 200, color="red")
# Animate
wa.move(win, 500, 300, duration=1.0)
wa.fade(win, 0.5, duration=0.5)
wa.color_to(win, "blue", duration=0.5)
# Display media
img = wa.window(400, 100, 300, 200, image="photo.jpg")
vid = wa.window(400, 350, 300, 200, video="movie.mp4")
# Text
txt = wa.window(100, 400, 200, 50, text="Hello!", font_size=32)
wa.wait(3)
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
window_art-0.1.1.tar.gz
(698.3 kB
view details)
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 window_art-0.1.1.tar.gz.
File metadata
- Download URL: window_art-0.1.1.tar.gz
- Upload date:
- Size: 698.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ee6eee170a8afc36b9faa70e6bf2f43795bcdfd345c2f47676cdf01a50032ec
|
|
| MD5 |
93f2785d6032a2721dacd824da28204d
|
|
| BLAKE2b-256 |
1b52f6b37cee7eb88c07c57add583f2d9bd6331c9518d7fa86748a74b6362666
|
File details
Details for the file window_art-0.1.1-py3-none-any.whl.
File metadata
- Download URL: window_art-0.1.1-py3-none-any.whl
- Upload date:
- Size: 33.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5139f8628bb3347aabea577e8181b7e76fb3147a2da60d7f282003a9d78384be
|
|
| MD5 |
8b884818548d3a596fab4fc4a3ab3af1
|
|
| BLAKE2b-256 |
200167271cda0a91e8cb0f44a8e04d8e647ce190c05b2cf13cf8dbf2cffe7fa4
|