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

Go to the source code of this file.

Functions

 REG_FIDDLE (RRect_outset_2, 256, 256, false, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( RRect_outset_2  ,
256  ,
256  ,
false  ,
 
)

Definition at line 4 of file RRect_outset_2.cpp.

4 {
5void draw(SkCanvas* canvas) {
7 paint.setAntiAlias(true);
9 SkRRect rrect = SkRRect::MakeRectXY({100, 20, 140, 220}, 50, 100);
10 for (int index = 0; index < 25; ++index) {
11 canvas->drawRRect(rrect, paint);
12 rrect.outset(3, 3);
13 }
14}
15} // END FIDDLE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
Definition: SkCanvas.cpp:1705
@ kStroke_Style
set to stroke geometry
Definition: SkPaint.h:194
void outset(SkScalar dx, SkScalar dy, SkRRect *dst) const
Definition: SkRRect.h:360
static SkRRect MakeRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
Definition: SkRRect.h:180
const Paint & paint
Definition: color_source.cc:38
SkRRect rrect
Definition: SkRecords.h:232