#include <SDL3/SDL.h>
#include "rgbcolor.h"
#include "tilespec.h"
#include "themespec.h"
#include "colors.h"
Go to the source code of this file.
◆ color_alloc()
Allocate a solid color and return a pointer to it.
Definition at line 78 of file colors.c.
◆ color_alloc_rgba()
Allocate a color with alpha channel and return a pointer to it. Alpha channel is not really used yet.
Definition at line 60 of file colors.c.
◆ color_brightness_score()
Return a number indicating the perceptual brightness of this color relative to others (larger is brighter).
Definition at line 113 of file colors.c.
◆ color_free()
Free resources allocated for color.
Definition at line 96 of file colors.c.
◆ get_game_color()
Get color for some game object instance.
Definition at line 51 of file colors.c.
◆ get_theme_color()
Get color from theme.
Definition at line 43 of file colors.c.