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

Go to the source code of this file.

Functions

 REG_FIDDLE (default, 256, 256, false, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( default  ,
256  ,
256  ,
false  ,
 
)

Definition at line 4 of file default.cpp.

4 {
5void draw(SkCanvas* canvas) {
7 p.setColor(SK_ColorRED);
8 p.setAntiAlias(true);
10 p.setStrokeWidth(10);
11
12 canvas->drawLine(20, 20, 236, 236, p);
13}
14} // END FIDDLE
constexpr SkColor SK_ColorRED
Definition: SkColor.h:126
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
Definition: SkCanvas.cpp:2700
@ kStroke_Style
set to stroke geometry
Definition: SkPaint.h:194