Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
RGBA4f_FromColor |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file RGBA4f_FromColor.cpp.
5 {
7 uint8_t red = 77, green = 101, blue = 153, alpha = 43;
10 SkDebugf(
"red=%g green=%g blue=%g alpha=%g\n", color4f.fR, color4f.fG, color4f.fB, color4f.fA);
11 SkColor fromColor4f = color4f.toSkColor();
14}
15}
#define SkColorGetR(color)
#define SkColorGetG(color)
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
#define SkColorGetA(color)
#define SkColorGetB(color)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
static SkRGBA4f FromColor(SkColor color)