Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
ColorToHSV |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
3 |
|
|
) |
| |
Definition at line 4 of file ColorToHSV.cpp.
4 {
7 for (
int y = 0;
y < 256; ++
y) {
8 for (
int x = 0;
x < 256; ++
x) {
11 hsv[1] = 1 - hsv[1];
15 }
16 }
17}
18}
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)