colors.h 523 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef COLORS_H
  2. #define COLORS_H
  3. struct Rgb {
  4. int r, g, b;
  5. };
  6. struct Hls {
  7. int h;
  8. float l, s;
  9. };
  10. void hsl2rgb(struct Rgb *, const struct Hls const *);
  11. void rgb2hsl(struct Hls *, const struct Rgb const *);
  12. static const char *decspan(const int);
  13. static void hexspan(char *, int, const char *);
  14. static void colorize_noalloc(char * const);
  15. static void sanitize(char *);
  16. void print_plname(const char*);
  17. static char* append_to_str(char *, const char *);
  18. char* colorize_name(char *, char * const);
  19. #endif