draw_sprite_general - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC {{-}} This function is part of the function set Drawing sprites

Notation

Description

The most general drawing function. It draws the indicated part of subimage (-1 = current) of the sprite with the top-left corner of the part at position (x,y) but now with scale factors, a rotation angle, a color for each of the four vertices (top-left, top-right, bottom-right, and bottom-left), and an alpha transparency value. Note that rotation takes place around the top-left corner of the part.

Parameters

  • sprite
  • subimg
  • left
  • top
  • width
  • height
  • x
  • y
  • xscale
  • yscale
  • rot
  • c1
  • c2
  • c3
  • c4
  • alpha

Return Values

Document return values.

Example Call

Example of using the function.
⚠️ **GitHub.com Fallback** ⚠️