4 {
7 return {(
s *
s * p0.
x()) + (2 *
s * t * p1.
x()) + (t * t * p2.
x()),
8 (
s *
s * p0.
y()) + (2 *
s * t * p1.
y()) + (t * t * p2.
y())};
9}
10
11
12
13
14
15
16
17
18
19
20
21
24
26 paint.setAntiAlias(
true);
28 paint.setStrokeWidth(5);
29
33
38
40
46
53
60 for (
int i = 0;
i <=
N; ++
i) {
63 }
64}
65}
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawPoint(SkScalar x, SkScalar y, const SkPaint &paint)
void clear(SkColor color)
void drawPath(const SkPath &path, const SkPaint &paint)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
sk_sp< SkTypeface > matchFamilyStyle(const char familyName[], const SkFontStyle &) const
void setColor(SkColor color)
void setAntiAlias(bool aa)
void setStrokeCap(Cap cap)
@ kStroke_Style
set to stroke geometry
void setStrokeWidth(SkScalar width)
SkPath & moveTo(SkScalar x, SkScalar y)
SkPath & lineTo(SkScalar x, SkScalar y)
SkPath & quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2)
sk_sp< SkFontMgr > fontMgr
font
Font Metadata and Metrics.
constexpr float y() const
constexpr float x() const