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:
- Description: Run an infinite loop (a little modified) allowing to keep the window open
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 Distributions
Hashes for kandinsky-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd1d2980d3b11b3fe69ea84231fd68f556d47daa2214162ef0c55004eccec00a |
|
MD5 | 7ca7b97c9288f30bcdf908fa78f02098 |
|
BLAKE2b-256 | a7243c9682e431597c658497f0da0e1ad4895764b04412a727e30d832da5c77f |