Lines Matching full:path
17 static SkScalar make_frame(SkPath* path) {
19 path->addRoundRect(r, 15, 15);
24 paint.getFillPath(*path, path);
28 static SkScalar make_triangle(SkPath* path) {
32 path->moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1]));
33 path->lineTo(SkIntToScalar(gCoord[2]), SkIntToScalar(gCoord[3]));
34 path->lineTo(SkIntToScalar(gCoord[4]), SkIntToScalar(gCoord[5]));
35 path->close();
36 path->offset(10, 0);
40 static SkScalar make_rect(SkPath* path) {
42 path->addRect(r);
43 path->offset(10, 0);
47 static SkScalar make_oval(SkPath* path) {
49 path->addOval(r);
50 path->offset(10, 0);
54 static SkScalar make_sawtooth(SkPath* path) {
61 path->moveTo(x, y);
64 path->lineTo(x, y - dy);
66 path->lineTo(x, y + dy);
68 path->lineTo(x, y + 2 * dy);
69 path->lineTo(x0, y + 2 * dy);
70 path->close();
74 static SkScalar make_star(SkPath* path, int n) {
81 path->moveTo(c, c - r);
85 path->lineTo(c + cosV * r, c + sinV * r);
87 path->close();
91 static SkScalar make_star_5(SkPath* path) { return make_star(path, 5); }
92 static SkScalar make_star_13(SkPath* path) { return make_star(path, 13); }