Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
HSVToColor_2 |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
3 |
|
|
) |
| |
Definition at line 4 of file HSVToColor_2.cpp.
4 {
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;
16 }
17 }
18}
19}
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)