Skip to main content

Minimal 2D graphics library for Python using WinAPI and ctypes

Project description

wincap

wincap is a lightweight 2D graphics library for Python, built on top of WinAPI using ctypes.

It's designed for creating simple Windows-based applications with support for:

  • primitives (lines, rectangles, circles)
  • sprites with transparency
  • smooth camera movement
  • keyboard and mouse input
  • and basic sound playback

🚀 Quick Example

from wincap import Canvas, sound

win = Canvas(800, 600, "PixAPI Demo")
win.set_color("green")
win.DrawRect(2, -50, -50, 100, 100)

def draw(win):
    win.set_camera(0, 0)

win.run(draw)

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

wicanap-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

wicanap-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wicanap-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for wicanap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 98a5731fa9c0ba05fd87cc3100bb7c1ae4b6d6c47de9ee53fc5a0138ee5ca7f4
MD5 173afc36192f05f050ea0975695f366a
BLAKE2b-256 4b94e21525a1f8702cf133226478c358ab5d0e753e68396d9221a2a6f0b7cb59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wicanap-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for wicanap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e6dec240ae09de5bb9625a25ebb25069297b9be8cac0430811b5df10b765964
MD5 761bbeb9539ae9c42a3eecddd39f14ea
BLAKE2b-256 8e5d77af863c8a20060ee33a244d5fbcd8f79b001281dd58f4408adec215c8f8

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