Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A module for Numworks calculator allowing to display images.

Valmontechno/Sprites-Numworks

Repository files navigation

Sprites-Numworks

This module allows you to display images on the Numworks calculator. You can convert any image with the sprite converter and then display it on the calculator with the sprites module.

Installation

You can upload to the calculator the sprites module from the Numworks website.

More

I recommend using the Kandinsky module for Numworks to test the program without putting it on the calculator.
If you have a suggestion or if your question is not answered, open an Issue.

Usable content

drawSprite(sprite, palette, x, y, scale) :

Draw a sprite on the screen.

  • sprite (string) The description of the sprite obtained from the editor.
  • palette (list of colors) The colors to be used for drawing the sprite. For example ('#1ab803','#620000','#e67e22') or ((26,184,3),(98,0,0),(230,126,34)).
  • x, y (numbers) The coordinates of the upper left point of the sprite.
  • scale (number or list of two numbers) (default: (1, 1)) The sprite scale or respectively the horizontal and vertical scale.

fillScreen(color) :

Fill the screen with a solid color.

  • color (color) (default: '#ffffff') The color used to fill the screen.

Constants :

  • SCREEN_WIDTH = 320
  • SCREEN_HEIGHT = 222

Sprite converter

The sprite converter allows you to convert any image into a string that can be displayed by the module.

About

A module for Numworks calculator allowing to display images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages