A small module allowing to link the kandinsky module, from the Numworks, to a window.
Project description
Kandinsky-Numworks
This module depend to Pygame module. To install it, click here and follow steps.
A small module allowing to link the kandinsky module, from the Numworks, to a window.
Useful if you want to test your program without putting it on the calculator.
/!\WARNING: Read this to understand the usefulness of display()
. /!\
Installation
You now have the option to install this module on pypi.org. For that, follow the steps here.
More
I also recreated the ion module of the Numworks, check it out here: Ion module of Numworks
If you have a question, check out the FAQ. And if you have a suggestion or your question is not answered, open an Issue.
Usable content
get_pixel():
- Parameters:
x
,y
- Description: Return pixel (x, y) color
set_pixel():
- Parameters:
x
,y
,color
- Description: Color pixel (x, y)
color():
- Parameters:
r
,g
,b
- Description: Define a rgb color
draw_string():
- Parameters:
text
,x
,y
,color
[default: (0,0,0)],background
[default: (248,252,248)] - Description: Display a text from pixel (x, y)
fill_rect():
- Parameters:
x
,y
,width
,height
,color
- Description: Fill a rectangle at pixel (x, y)
display():
- Parameters:
justRefresh
[default: False] - Description: Run an infinite loop (a little modified) allowing to keep the window open.
If justRefresh == True: Just refresh the screen and don't run the loop.
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
Built Distribution
Hashes for kandinsky-1.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c040b2147f3d93d2cbe2ba0ca67d17fb80ab14946915322d943814c154dc2919 |
|
MD5 | 97e82453651c3d9ace5050f9fd2ea975 |
|
BLAKE2b-256 | 9dad15429ba6e56596ccb6f2cc8ff826dd5cdf77ef4874b42a7c6f0487bc940f |