willmeyers/window-art: A minimal Python library for live coding visual scenes using desktop windows.

✨ Read this must-read post from Hacker News 📖

📂 **Category**:

💡 **What You’ll Learn**:

A minimal Python library for live coding visual scenes using desktop windows.

window-art demo

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)
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)

💬 **What’s your take?**
Share your thoughts in the comments below!

#️⃣ **#willmeyerswindowart #minimal #Python #library #live #coding #visual #scenes #desktop #windows**

🕒 **Posted on**: 1768857115

🌟 **Want more?** Click here for more info! 🌟

By

Leave a Reply

Your email address will not be published. Required fields are marked *