Skip to content

A module for Numworks calculator allowing to display images.

Notifications You must be signed in to change notification settings

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 then display it on the calculator with the sprites module.

Screenshot_20231219-192649

Installation

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

More

I recommend using the Kandinsky module of Numworks for 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, pallet, x, y, scale) :

Draw a sprite on the screen.

  • sprite (string) The description of the sprite obtained from the editor.
  • pallet (list of color) 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 transform 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