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.
You can upload on calculator the sprites module from the Numworks website.
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.
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.
Fill the screen with a solid color.
color
(color) (default:'#ffffff'
) The color used to fill the screen.
- SCREEN_WIDTH =
320
- SCREEN_HEIGHT =
222
The sprite converter allows you to transform any image into a string that can be displayed by the module.