45 float gap = fImg->
width() * 3;
48 dodraw(canvas,
nullptr, fCF1, gap);
50 dodraw(canvas, fCF0,
nullptr, gap);
52 dodraw(canvas, fCF0, fCF1, gap);
55 if (fWeight > 1 || fWeight < 0) {
75 paint.setColorFilter(cf0);
82 paint.setColorFilter(cf1);
#define SkScalarRoundToInt(x)
void draw(SkCanvas *canvas) override
bool onClick(Click *click) override
Click * onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey) override
void translate(SkScalar dx, SkScalar dy)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkColorFilter > Blend(const SkColor4f &c, sk_sp< SkColorSpace >, SkBlendMode mode)
static sk_sp< SkColorFilter > Matrix(const SkColorMatrix &)
static sk_sp< SkColorFilter > Lerp(float t, sk_sp< SkColorFilter > dst, sk_sp< SkColorFilter > src)
SkSamplingOptions(SkFilterMode::kLinear))
void offset(int32_t dx, int32_t dy)
bool contains(int32_t x, int32_t y) const