61 {
63
65
66 SkPoint pts[2] = {{0, 0}, {256, 0}};
67 SkRect r = {0, 0, 256, 32};
70 paint.setDither(fDither);
71
74
78 const char* fLabel;
79 };
80 static const Config kConfigs[] = {
81 { CS::kDestination, "Destination" },
82 { CS::kSRGB, "sRGB" },
83 { CS::kSRGBLinear, "Linear sRGB" },
84 { CS::kLab, "CIELAB" },
85 { CS::kOKLab, "Oklab" },
86 { CS::kOKLabGamutMap, "OklabGamutMap" },
87 { CS::kLCH, "LCH" },
88 { CS::kOKLCH, "Oklch" },
89 { CS::kOKLCHGamutMap, "OklchGamutMap" },
90 { CS::kHSL, "HSL" },
91 { CS::kHWB, "HWB" },
92 };
94
95 for (
const Config& config : kConfigs) {
97
101 fInterpolation, nullptr));
104 266, 20,
font, labelPaint);
106 }
108 }
constexpr SkColor SK_ColorGRAY
@ kUTF8
uses bytes to represent UTF-8 or ASCII
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawSimpleText(const void *text, size_t byteLength, SkTextEncoding encoding, SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void clear(SkColor color)
static sk_sp< SkColorSpace > MakeSRGB()
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
font
Font Metadata and Metrics.