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.7.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf71c4f673500fa86636c4f7027ba5486b494514261794cb4944045b2b5446a5 |
|
MD5 | a47ee72cdb2f74e6fabd31e0e82600ac |
|
BLAKE2b-256 | a258fa6569362d04babd118ad7b98d704339b36e6e61e71e3a8922f2196981e7 |