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(100);
17 paint.setStrokeWidth(10);
18 paint.setColor(0x3f45bf12);
static const int points[]
REG_FIDDLE(Point_setLength, 256, 160, false, 0)
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)