Go to the source code of this file.
|
| REG_FIDDLE (Point_setNormalize, 256, 256, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Point_setNormalize |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Point_setNormalize.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.setNormalize(point.fX, point.fY);
18 paint.setStrokeWidth(10);
19 paint.setColor(0x3f4512bf);
21 }
22}
23}
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)