![]() |
![]() |
![]() |
![]() |
Convert alpha, red, green, and blue values to composite color format
PgColor_t PgARGB( int A, int R, int G, int B );
ph
This macro converts alpha, red, green, and blue values into a composite color value (of type PgColor_t). The values for alpha, red, green, and blue range from 0 to 255. If you set the red, green, and blue values to 0, the color is black; if you set them to 255, the color is white. The meaning of the alpha value depends on the alpha model that you're using.
![]() |
This macro doesn't check the color model currently in use, and gives undefined results if you're not using the Pg_CM_ARGB model. |
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PgAlphaValue(), PgBlueValue(), PgColor_t, PgGreenValue(), PgRedValue(), PgRGB(), PgSetFillColor(), PgSetStrokeColor(), PgSetTextColor()
“Color” and “Alpha Blending Support” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |