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

Go to the source code of this file.

Functions

 REG_FIDDLE (Paint_setPathEffect, 256, 256, false, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( Paint_setPathEffect  ,
256  ,
256  ,
false  ,
 
)

Definition at line 4 of file Paint_setPathEffect.cpp.

4 {
5void draw(SkCanvas* canvas) {
7 paint.setPathEffect(SkDiscretePathEffect::Make(3, 5));
8 canvas->drawRect(SkRect::MakeXYWH(40, 40, 175, 175), paint);
9}
10} // END FIDDLE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void drawRect(const SkRect &rect, const SkPaint &paint)
Definition: SkCanvas.cpp:1673
static sk_sp< SkPathEffect > Make(SkScalar segLength, SkScalar dev, uint32_t seedAssist=0)
const Paint & paint
Definition: color_source.cc:38
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
Definition: SkRect.h:659