#include <gfxprim.h> /* or */ #include <core/gp_convert.h> gp_pixel gp_rgb_to_pixel(uint8_t r, uint8_t g, uint8_t b, gp_pixel_type type); gp_pixel gp_rgba_to_pixel(uint8_t r, uint8_t g, uint8_t b, uint8_t a, gp_pixel_type type); gp_pixel gp_rgb_to_pixmap_pixel(uint8_t r, uint8_t g, uint8_t b, const gp_pixmap *pixmap); gp_pixel gp_rgba_to_pixmap_pixel(uint8_t r, uint8_t g, uint8_t b, uint8_t a, const gp_pixmap *pixmap);