7 for (
int y = 0;
y < 256; ++
y) {
8 for (
int x = 0;
x < 256; ++
x) {
12 hsv[0] = hsv[0] + 90 >= 360 ? hsv[0] - 270 : hsv[0] + 90;
REG_FIDDLE(HSVToColor, 256, 256, false, 3)
SK_API SkColor SkHSVToColor(U8CPU alpha, const SkScalar hsv[3])
static void SkColorToHSV(SkColor color, SkScalar hsv[3])
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
sk_sp< SkImage > asImage() const
SkColor getColor(int x, int y) const
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)