SetSpriteCanvasRenderPriority [RCBasic Doc]

## Function SetSpriteCanvasRenderPriority( c_num, priority, order )

Sets the order sprites are rendered on a sprite canvas.

Returns False if canvas is not a valid canvas

Possible priority values

- SPRITE_PRIORITY_NONE - Sprites are rendered in the order they are added
- SPRITE_PRIORITY_LEAST_X - Sprites are rendered based on the X position
- SPRITE_PRIORITY_GREATEST_X - Sprites are rendered based on the X position plus the width
  - NOTE: Width is adjusted by Scale when calculating the position
- SPRITE_PRIORITY_LEAST_Y - Sprites are rendered based on the Y position
- SPRITE_PRIORITY_GREATEST_Y - Sprites are rendered based on the Y position plus the height
  - NOTE: Height is adjusted by Scale when calculating the position

Possible order values

- SPRITE_ORDER_ASCENDING - Sprites are ordered from lowest in priority to highest when rendered
- SPRITE_ORDER_DESCENDING - Sprites are ordered from highest in priority to lowest when rendered

Related: GetSpriteCanvasRenderPriority