blob: b833ce92b2816ea4c9685d17b1c0a8c575d6ea2c [file]
// Copyright 2020 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"
REG_FIDDLE(redwhiteonblue, 256, 256, false, 0) {
void draw(SkCanvas* canvas) {
canvas->clear(SK_ColorBLUE);
SkPaint paint;
paint.setAntiAlias(true);
paint.setColor(SK_ColorWHITE);
canvas->drawRect({10.5, 10.5, 120.5, 120.5}, paint);
paint.setColor(SK_ColorRED);
canvas->drawRect({120.5, 10.5, 230.5, 120.5}, paint);
}
} // END FIDDLE