1// Copyright 2020 Google LLC. 2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. 3#include "tools/fiddle/examples.h" 4REG_FIDDLE(persp_text_2, 256, 256, false, 0) { 5void draw(SkCanvas* canvas) { 6 SkPaint paint; 7 SkMatrix persp; 8 persp.setAll(0.9839f, 0, 0, 0.2246f, 0.6829f, 0, 0.0002352f, -0.0003844f, 1); 9 canvas->concat(persp); 10 canvas->translate(100, 0); 11 canvas->scale(375, 375); 12 13 const char text[] = "SKIA"; 14 canvas->drawString(text, 0, 0, SkFont(nullptr, 0.1f), paint); 15} 16} // END FIDDLE 17