nanovg.h:
// Returns a color value from red, green, blue and alpha values.
NVGcolor nvgRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a);
// Returns a color value from red, green, blue and alpha values.
NVGcolor nvgRGBAf(float r, float g, float b, float a);
nanovg.h: // Returns a color value from red, green, blue and alpha values. NVGcolor nvgRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a);
// Returns a color value from red, green, blue and alpha values. NVGcolor nvgRGBAf(float r, float g, float b, float a);
See also: https://developer.android.com/reference/android/graphics/Color