6 float red = 0.07f, green = 0.13f, blue = 0.32f, alpha = 0.17f;
7 SkColor4f color4f = { red, green, blue, alpha };
8 SkColor argb = color4f.toSkColor();
11 SkColor4f fromSkColor = SkColor4f::FromColor(argb);
12 SkDebugf(
"red=%g green=%g blue=%g alpha=%g\n", fromSkColor.fR, fromSkColor.fG,
13 fromSkColor.fB, fromSkColor.fA);
REG_FIDDLE(RGBA4f_toSkColor, 256, 256, true, 0)
#define SkColorGetR(color)
#define SkColorGetG(color)
#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)