Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
skew_x_animated.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE_ANIMATED (skew_x_animated, 256, 256, false, 6, 6)
 

Function Documentation

◆ REG_FIDDLE_ANIMATED()

REG_FIDDLE_ANIMATED ( skew_x_animated  ,
256  ,
256  ,
false  ,
,
 
)

Definition at line 4 of file skew_x_animated.cpp.

4 {
5void draw(SkCanvas* canvas) {
6 canvas->clear(SK_ColorWHITE);
8 matrix.setAll(2, 5 * cos(6.28318548 * frame), 0,
9 0, 2, 128,
10 0, 0, 1);
12 paint.setShader(
17 matrix));
18 canvas->drawPaint(paint);
19}
20} // END FIDDLE
constexpr SkColor SK_ColorWHITE
Definition SkColor.h:122
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition aaclip.cpp:27
void drawPaint(const SkPaint &paint)
void clear(SkColor color)
Definition SkCanvas.h:1199
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
Definition SkImage.cpp:179
const Paint & paint
sk_sp< SkImage > image
Definition examples.cpp:29
double frame
Definition examples.cpp:31
unsigned useCenter Optional< SkMatrix > matrix
Definition SkRecords.h:258