20 constexpr float kSize = 256.0f / (
sizeof(kColors) /
sizeof(kColors[0]));
21 const SkColor4f kBrown{0.5f, 0.25f, 0, 1};
23 for (
const auto& c : kColors) {
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
sk_sp< SkTypeface > matchFamilyStyle(const char familyName[], const SkFontStyle &) const
static constexpr int kSize
sk_sp< SkFontMgr > fontMgr
#define REG_FIDDLE(NAME, W, H, TEXT, I)
constexpr SkColor4f kLtGray
constexpr SkColor4f kMagenta
constexpr SkColor4f kGreen
constexpr SkColor4f kWhite
constexpr SkColor4f kCyan
constexpr SkColor4f kBlack
constexpr SkColor4f kGray
constexpr SkColor4f kBlue
constexpr SkColor4f kYellow
constexpr SkColor4f kDkGray