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

Go to the source code of this file.

Functions

 REG_FIDDLE (default2, 256, 256, false, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( default2  ,
256  ,
256  ,
false  ,
 
)

Definition at line 4 of file default2.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, 100, 100, 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)
@ kStroke_Style
set to stroke geometry
Definition SkPaint.h:194