gfx.Sprite

Draw an image of any size to the screen.

Syntax

gfx.Sprite(source, x, y, frame)

Parameters

  • source - The address of the sprite graphics.
  • x - Horizontal position of sprite.
  • y - Vertical position of sprite.
  • frame - Frame of sprite to draw.

Returns

This command returns no values.

About

Call gfx.Sprite to draw images to the screen. All built-in drawing functions are built on gfx.Sprite except for gfx.Blit.

If an image is exactly 128x64 pixels, use gfx.Blit for much faster drawing.