Files
skia/docs/examples/Color_Burn.cpp
2022-09-13 14:31:24 +08:00

12 lines
467 B
C++

// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
// HASH=3eeef529375d8083ae0d615789d55e89
REG_FIDDLE(Color_Burn, 256, 256, false, 3) {
void draw(SkCanvas* canvas) {
canvas->drawImage(image, 0, 0);
canvas->clipRect({128, 0, 256, 256});
canvas->drawColor(SkColorSetARGB(0x80, 0x90, 0x90, 0x90), SkBlendMode::kColorBurn);
}
} // END FIDDLE