Freeciv-3.2
|
#include <stdio.h>
#include <gtk/gtk.h>
#include "log.h"
#include "mem.h"
#include "rgbcolor.h"
#include "gui_main.h"
#include "colors.h"
Go to the source code of this file.
Functions | |
struct color * | color_alloc (int r, int g, int b) |
void | color_free (struct color *color) |
int | color_brightness_score (struct color *pcolor) |
Allocate a color (well, sort of) and return a pointer to it.
Definition at line 38 of file colors.c.
Referenced by ensure_color(), load_gfxnumber(), and pixmap_put_overlay_tile_draw().
Return a number indicating the perceptual brightness of this color relative to others (larger is brighter).
Definition at line 62 of file colors.c.
Referenced by color_best_contrast().
Free a previously allocated color. See color_alloc.
Definition at line 53 of file colors.c.
Referenced by fc_interface_init_client(), load_gfxnumber(), pixmap_put_overlay_tile_draw(), and theme_color_system_free().