Flutter Engine
The Flutter Engine
Macros
color_utils.h File Reference

Go to the source code of this file.

Macros

#define ColorGetA(color)   (((color) >> 24) & 0xFF)
 
#define ColorGetR(color)   (((color) >> 16) & 0xFF)
 
#define ColorGetG(color)   (((color) >> 8) & 0xFF)
 
#define ColorGetB(color)   (((color) >> 0) & 0xFF)
 

Macro Definition Documentation

◆ ColorGetA

#define ColorGetA (   color)    (((color) >> 24) & 0xFF)

Returns alpha byte from color value.

Definition at line 10 of file color_utils.h.

◆ ColorGetB

#define ColorGetB (   color)    (((color) >> 0) & 0xFF)

Returns blue component of color, from zero to 255.

Definition at line 22 of file color_utils.h.

◆ ColorGetG

#define ColorGetG (   color)    (((color) >> 8) & 0xFF)

Returns green component of color, from zero to 255.

Definition at line 18 of file color_utils.h.

◆ ColorGetR

#define ColorGetR (   color)    (((color) >> 16) & 0xFF)

Returns red component of color, from zero to 255.

Definition at line 14 of file color_utils.h.