Home | History | Annotate | Download | only in gm

Lines Matching refs:width

14 void draw_thin_stroked_rect(SkCanvas* canvas, const SkPaint& paint, SkScalar width) {
16 path.moveTo(10 + width, 10 + width);
17 path.lineTo(40, 10 + width);
19 path.lineTo(10 + width, 20);
21 path.lineTo(10, 20 + width);
22 path.lineTo(40 + width, 20 + width);
23 path.lineTo(40 + width, 10);
27 void draw_thin_right_angle(SkCanvas* canvas, const SkPaint& paint, SkScalar width) {
29 path.moveTo(10 + width, 10 + width);
30 path.lineTo(40, 10 + width);
32 path.lineTo(40 + width, 20 + width);
33 path.lineTo(40 + width, 10);
39 void draw_golf_club(SkCanvas* canvas, const SkPaint& paint, SkScalar width) {
43 path.lineTo(80, 10 + width);
44 path.lineTo(30, 10 + width);
52 void draw_barbell(SkCanvas* canvas, const SkPaint& paint, SkScalar width) {
53 SkScalar offset = width * 0.5f;
68 void draw_thin_rect_and_triangle(SkCanvas* canvas, const SkPaint& paint, SkScalar width) {
71 path.lineTo(30 + width, 5);
72 path.lineTo(30 + width, 25);
75 path.lineTo(40 + width, 5);
83 void draw_hipster_pants(SkCanvas* canvas, const SkPaint& paint, SkScalar width) {
87 path.lineTo(50, 10 + width);
95 void draw_skinny_snake(SkCanvas* canvas, const SkPaint& paint, SkScalar width) {
97 path.moveTo(20 + width, 10);
98 path.lineTo(20 + width, 20);
99 path.lineTo(10 + width, 30);
100 path.lineTo(10 + width, 40);
101 path.lineTo(10 - width, 40);
102 path.lineTo(10 - width, 30);
103 path.lineTo(20 - width, 20);
104 path.lineTo(20 - width, 10);
109 void draw_pointy_golf_club(SkCanvas* canvas, const SkPaint& paint, SkScalar width) {
112 path.lineTo(80, 10 + width * 0.5);
113 path.lineTo(30, 10 + width);
128 for (SkScalar width = 0.5f; width < 2.05f; width += 0.25f) {
129 draw_thin_stroked_rect(canvas, paint, width);
135 for (SkScalar width = 0.5f; width < 2.05f; width += 0.25f) {
136 draw_thin_right_angle(canvas, paint, width);
142 for (SkScalar width = 0.2f; width < 2.1f; width += 0.2f) {
143 draw_golf_club(canvas, paint, width);
149 for (SkScalar width = 0.2f; width < 2.1f; width += 0.2f) {
150 draw_thin_rect_and_triangle(canvas, paint, width);
157 for (SkScalar width = 0.2f; width < 2.1f; width += 0.2f) {
158 draw_barbell(canvas, paint, width);
164 for (SkScalar width = 0.2f; width < 2.1f; width += 0.2f) {
165 draw_hipster_pants(canvas, paint, width);
171 for (SkScalar width = 0.2f; width < 2.1f; width += 0.2f) {
172 draw_skinny_snake(canvas, paint, width);
178 for (SkScalar width = 0.2f; width < 2.1f; width += 0.2f) {
179 draw_pointy_golf_club(canvas, paint, width);