xdfcgi/include/colors.h

32 lines
523 B
C

#ifndef COLORS_H
#define COLORS_H
struct Rgb {
int r, g, b;
};
struct Hls {
int h;
float l, s;
};
void hsl2rgb(struct Rgb *, const struct Hls const *);
void rgb2hsl(struct Hls *, const struct Rgb const *);
static const char *decspan(const int);
static void hexspan(char *, int, const char *);
static void colorize_noalloc(char * const);
static void sanitize(char *);
void print_plname(const char*);
static char* append_to_str(char *, const char *);
char* colorize_name(char *, char * const);
#endif