6 uint8_t red = 77, green = 101, blue = 153, alpha = 43;
8 SkColor4f color4f = SkColor4f::FromColor(argb);
9 SkDebugf(
"red=%g green=%g blue=%g alpha=%g\n", color4f.fR, color4f.fG, color4f.fB, color4f.fA);
10 SkColor fromColor4f = color4f.toSkColor();
REG_FIDDLE(RGBA4f_FromColor, 256, 256, true, 0)
#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)