Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kandinsky-1.7.1.tar.gz (202.3 kB view hashes)

Uploaded Source

Built Distribution

kandinsky-1.7.1-py3-none-any.whl (196.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page