64void rotatePixel(int32_t* x, int32_t* y, int32_t rotateDeg, int32_t width, int32_t height);
65#define drawWsg(w, x, y, lr, ud, rot) drawWsgSolid(w, x, y, lr, ud, rot, cTransparent)
66void drawWsgSolid(
const wsg_t* wsg, int32_t xOff, int32_t yOff,
bool flipLR,
bool flipUD, int32_t rotateDeg,
int32_t q24_8
24 bits integer, 8 bits fraction
Definition fp_math.h:36
paletteColor_t
All 216 possible colors, named like cRGB.
Definition palette.h:23
paletteColor_t * px
The row-order array of pixels in the image.
Definition wsg.h:59
void drawWsgSmoothScaled(const wsg_t *wsg, int16_t xOff, int16_t yOff, q24_8 xScale, q24_8 yScale)
Draw a WSG to the display without flipping or rotation. Use drawWsgSimpleScaled and drawWsgSimpleHalf...
Definition wsg.c:506
void drawWsgSimpleScaled(const wsg_t *wsg, int16_t xOff, int16_t yOff, int16_t xScale, int16_t yScale)
Draw a WSG to the display without flipping or rotation. xScale and yScale must share the same sign or...
Definition wsg.c:341
void drawWsgSimple(const wsg_t *wsg, int16_t xOff, int16_t yOff)
Draw a WSG to the display without flipping or rotation.
Definition wsg.c:291
uint16_t w
The width of the image.
Definition wsg.h:60
void drawWsgSimpleScaledUp(const wsg_t *wsg, int16_t xOff, int16_t yOff, int16_t xScale, int16_t yScale)
Draw a WSG to the display without flipping or rotation.
Definition wsg.c:366
uint16_t h
The height of the image.
Definition wsg.h:61
void drawWsgSimpleScaledDown(const wsg_t *wsg, int16_t xOff, int16_t yOff, int16_t xScale, int16_t yScale)
Draw a WSG to the display without flipping or rotation at half size.
Definition wsg.c:439
void drawWsgSimpleHalf(const wsg_t *wsg, int16_t xOff, int16_t yOff)
Draw a WSG to the display without flipping or rotation at half size.
Definition wsg.c:491
void rotatePixel(int32_t *x, int32_t *y, int32_t rotateDeg, int32_t width, int32_t height)
Definition wsg.c:28
void drawWsgSolid(const wsg_t *wsg, int32_t xOff, int32_t yOff, bool flipLR, bool flipUD, int32_t rotateDeg, paletteColor_t color)
Draw a WSG to the display.
Definition wsg.c:107
void drawWsgTile(const wsg_t *wsg, int32_t xOff, int32_t yOff)
Quickly copy a WSG to the display without flipping or rotation or transparency.
Definition wsg.c:555
A sprite using paletteColor_t colors that can be drawn to the display.
Definition wsg.h:58