Skip to main content

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.

window-art demo

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)

Features

  • Simple window creation with colors
  • Smooth animations with 24+ easing functions
  • Images, GIFs, and video playback
  • Text rendering
  • Grid layouts
  • Live coding friendly

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)

License

MIT

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

window_art-0.1.0.tar.gz (697.0 kB view details)

Uploaded Source

Built Distribution

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

window_art-0.1.0-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: window_art-0.1.0.tar.gz
  • Upload date:
  • Size: 697.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for window_art-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0ebb4096220597b66b1842d419102078470dbc6875de706ae30841c3befb4ff2
MD5 e2145f63c81bda8225a77d95be1b9eae
BLAKE2b-256 be4115d58b9fc627480d01e3da615b6224e90ed4704ca72d057ed6cb5ea82b04

See more details on using hashes here.

File details

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

File metadata

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

Hashes for window_art-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 853842ea04559272b59efd07b9cc3367ab528bd3d5da4b903ba5ca84e17e7d42
MD5 c6408ce8bd4adafcf07ca74c079709f9
BLAKE2b-256 5d81a9134e3ec71bf2d580f109f036d2f930145feebf0a80900f307aa82d2f3d

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