CG-50 Python drawing framework. Early Access.
Go to file
KikooDX 71e438865a (README.md) Started documentation 2020-04-12 18:48:22 +02:00
.gitignore Initial commit 2020-04-09 18:06:41 +02:00
LICENSE Initial commit 2020-04-09 18:06:41 +02:00
README.md (README.md) Started documentation 2020-04-12 18:48:22 +02:00
example.py (example.py) Added demo of fill_screen, rect & invert_rect 2020-04-12 18:33:37 +02:00
sprito.py (sprito.py) Space char is no longer hardcoded to transparency. 2020-04-12 18:24:32 +02:00

README.md

Sprito

CG-50 Python drawing framework

Drawing functions

rect(x: int, y: int, w: int, h: int, color: tuple) -> None : Draw a rectangle with the given color from (x;y) of size w (width) times h (height).

fill_screen(color: tuple) -> None : Fill the screen with the given color.

invert_pixel(x: int, y: int) -> None : Invert the pixel color at (x;y).

invert_rect(x: int, y: int, w: int, h: int) -> None : Invert all the pixels of the rectangle from (x;y) of size w (width) times h (height).

Sprite classes (WIP)

SpriteIndexed : indexed sprite. Draw using pallets.

SpriteRaw : raw sprite, usually heavier than an indexed sprite but faster to draw.