4 {
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
21
22
24 return {(
s *
s *
s * p0.
x()) +
25 (3 *
s *
s * t * p1.
x()) +
26 (3 *
s * t * t * p2.
x()) +
28 (
s *
s *
s * p0.
y()) +
29 (3 *
s *
s * t * p1.
y()) +
30 (3 *
s * t * t * p2.
y()) +
31 (t * t * t * p3.
y())};
32}
33
37}
38
41
46
52
54 paint.setAntiAlias(
true);
56 paint.setStrokeWidth(1);
57
61
62 paint.setStrokeWidth(3);
66
67 paint.setStrokeWidth(5);
73
78
87
92
95
99}
100}
static double interpolate(double A, double B, double t)
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
static SkScalar SkScalarInterp(SkScalar A, SkScalar B, SkScalar t)
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawPoint(SkScalar x, SkScalar y, const SkPaint &paint)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, 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 & cubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3)
const char * c_str() const
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
sk_sp< SkFontMgr > fontMgr
font
Font Metadata and Metrics.
constexpr float y() const
constexpr float x() const