Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cosCrunchUtil.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include "wsg.h"
9#include "wsgPalette.h"
10
12#define PALETTE_LOWLIGHT c111
14#define PALETTE_BASE c222
16#define PALETTE_HIGHLIGHT c444
17
25
33void tintPalette(wsgPalette_t* palette, const tintColor_t* tintColor);
34
43void drawToCanvas(wsg_t canvas, wsg_t wsg, uint16_t x, uint16_t y);
44
56void drawToCanvasTint(wsg_t canvas, wsg_t wsg, int32_t x, int32_t y, int32_t rotationDeg, const tintColor_t* tintColor);
57
66void drawToCanvasTile(wsg_t canvas, wsg_t wsg, uint16_t x, uint16_t y);
paletteColor_t highlight
Definition cosCrunchUtil.h:23
paletteColor_t base
Definition cosCrunchUtil.h:22
void drawToCanvasTile(wsg_t canvas, wsg_t wsg, uint16_t x, uint16_t y)
Draws a wsg image onto another wsg image without taking transparent pixels into account.
void tintPalette(wsgPalette_t *palette, const tintColor_t *tintColor)
Modifies a palette to be used for tinting greyscale images. The resulting palette is intended to be u...
paletteColor_t lowlight
Definition cosCrunchUtil.h:21
void drawToCanvasTint(wsg_t canvas, wsg_t wsg, int32_t x, int32_t y, int32_t rotationDeg, const tintColor_t *tintColor)
Draws a wsg image drawn in greyscale onto another wsg image, tinting the grayscale pixels....
void drawToCanvas(wsg_t canvas, wsg_t wsg, uint16_t x, uint16_t y)
Draws a wsg image onto another wsg image.
A set of colors used to tint a greyscale image.
Definition cosCrunchUtil.h:20
paletteColor_t
All 216 possible colors, named like cRGB.
Definition palette.h:23
Provides palette swap functionality for Swadge.
Definition wsgPalette.h:74
A sprite using paletteColor_t colors that can be drawn to the display.
Definition wsg.h:57