blob: 91ee62a247d7fd8d0d8ce840ee8b9cb2470c5396 [file] [log] [blame]
Hal Canary87515122019-03-15 14:22:51 -04001// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Mike Kleinc0bd9f92019-04-23 12:05:21 -05003#include "tools/fiddle/examples.h"
Hal Canary87515122019-03-15 14:22:51 -04004// HASH=379fc375e011050b54ed9df83c0996a7
Hal Canarya7181e7c2019-03-18 16:06:34 -04005REG_FIDDLE(Matrix_get9, 256, 256, true, 0) {
Hal Canary87515122019-03-15 14:22:51 -04006void draw(SkCanvas* canvas) {
Mike Reed2ac6ce82021-01-15 12:26:22 -05007 SkMatrix matrix = SkMatrix::RectToRect({0, 0, 1, 1}, {3, 4, 7, 9});
Hal Canary87515122019-03-15 14:22:51 -04008 SkScalar b[9];
9 matrix.get9(b);
10 SkDebugf("{%g, %g, %g},\n{%g, %g, %g},\n{%g, %g, %g}\n", b[0], b[1], b[2],
11 b[3], b[4], b[5], b[6], b[7], b[8]);
12}
13} // END FIDDLE