29 for (uint32_t
i = 0;
i < 10; ++
i) {
32 int numPoints = (
i + 3) * 3;
35 for (
float j = 1; j < numPoints; j += 3) {
37 path.cubicTo(cosf(j/numPoints * k2PI), sinf(j/numPoints * k2PI),
38 cosf((j+1)/numPoints * k2PI), sinf((j+1)/numPoints * k2PI),
39 j+2 == numPoints ? 1 : cosf((j+2)/numPoints * k2PI),
40 j+2 == numPoints ? 0 : sinf((j+2)/numPoints * k2PI));
47 paint.setColor(((
i + 123458383u) * 285018463u) | 0xff808080);
48 paint.setAlphaf(0.3f);
49 paint.setAntiAlias(
true);
constexpr SkColor SK_ColorBLACK
void translate(SkScalar dx, SkScalar dy)
void clear(SkColor color)
void drawPath(const SkPath &path, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
static SkPath scale(const SkPath &path, SkScalar scale)
static constexpr SkISize Make(int32_t w, int32_t h)