Flutter Engine
The Flutter Engine
Functions
State_Stack_b.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (State_Stack_b, 256, 128, false, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( State_Stack_b  ,
256  ,
128  ,
false  ,
 
)

Definition at line 4 of file State_Stack_b.cpp.

4 {
5void draw(SkCanvas* canvas) {
6 canvas->clipRect(SkRect::MakeWH(100, 100));
7 canvas->clear(SK_ColorRED);
8 canvas->scale(.5, .5);
9 canvas->clipRect(SkRect::MakeWH(100, 100));
10 canvas->clear(SK_ColorBLUE);
11}
12} // END FIDDLE
constexpr SkColor SK_ColorBLUE
Definition: SkColor.h:135
constexpr SkColor SK_ColorRED
Definition: SkColor.h:126
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
Definition: SkCanvas.cpp:1361
void clear(SkColor color)
Definition: SkCanvas.h:1199
void scale(SkScalar sx, SkScalar sy)
Definition: SkCanvas.cpp:1289
static constexpr SkRect MakeWH(float w, float h)
Definition: SkRect.h:609