Go to the source code of this file.
|
| REG_FIDDLE (Point_setLength_2, 256, 160, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Point_setLength_2 |
, |
|
|
256 |
, |
|
|
160 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Point_setLength_2.cpp.
4 {
7 paint.setAntiAlias(
true);
8 const SkPoint points[] = { { 60, -110 }, { 90, 10 }, { 120, -110 }, { 180, -50 } };
11 for (
auto point :
points) {
12 paint.setStrokeWidth(1);
16 normal.setLength(point.fX, point.fY, 100);
17 paint.setStrokeWidth(10);
18 paint.setColor(0x3fbf4512);
20 }
21}
22}
static const int points[]
constexpr SkColor SK_ColorBLACK
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void translate(SkScalar dx, SkScalar dy)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)