|
NAMEAG_Color —
agar color structure
SYNOPSIS#include <agar/core.h> #include <agar/gui.h> DESCRIPTIONMany functions in Agar accept AG_Color parameters. This structure describes a color in terms of its red, green and blue and alpha components:typedef struct ag_color { Uint8 r, g, b, a; } AG_Color; The alpha component may or may not be used in a particular context; a value of 0 is fully transparent and 255 is fully opaque. INTERFACEAG_ColorAG_ColorRGB (Uint8
r, Uint8 g,
Uint8 b);
The
The "#RRGGBB" "r:g:b[:a]" "r,g,b[,a]" "rgb(r,g,b[,a])" "hsv(h,s,v[,a])" If components are given with a terminating "%" character, they are interpreted as a percentage of the corresponding component in parentColor (assuming the argument is non-NULL). The SEE ALSOAG_Intro(3), AG_MapColorRGB(3), AG_MapColorRGBA(3), AG_MapPixelRGB(3), AG_MapPixelRGBA(3), AG_Widget(3)HISTORYColors in Agar were originally described as 32-bit packed pixel values. This was replaced by theAG_Color structure in Agar 1.4.
Visit the GSP FreeBSD Man Page Interface. |