Простое рисование на холсте без бойлерплейта
Project description
A zero-boilerplate canvas drawing framework for Python 3, based on Pygame.
Some examples
Here’s some of the neat stuff you can do:
# import all from drawzero import * # simple shapes fill('#12bbae') line('red', (400, 400), (800, 800)) circle('yellow', (500, 560), 200) filled_circle('brown', (500, 500), 20) text('red', 'Hello, world!', (300, 200), 72) rect('blue', (200, 600), 100, 100) filled_rect('orange', (400, 600), 100, 100) polygon('white', [(20, 200), (100, 240), (40, 160)]) filled_polygon('burlywood', 200, 400, 130, 304, 20, 342, 20, 458, 130, 496, ) # animation for i in range(60 * 5): tick() circle((i % 255, (19 * i) % 255, (91 * i) % 255), (100 + 2*i, 100 + i // 5), 20 + 4 * (i % 5))
Installation
In a Terminal window, type:
pip install drawzero
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
drawzero-0.1.10.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for drawzero-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2ddd4f4c3edc61e7aa224774550ee7101d31325bfaad5e670956a4316c7c122 |
|
MD5 | a257fbdf2d9cd26c7a69450766bda915 |
|
BLAKE2b-256 | 2a7503b405915f11dff200ca20f47ee1a455fa5805c6f971d4f0d65ef95c98f5 |