Home | History | Annotate | Download | only in gm

Lines Matching defs:hex

32     SkPath hex;
33 hex.moveTo(originX-kHexSide, originY);
34 hex.rLineTo(SkScalarHalf(kHexSide), kRoot3Over2 * kHexSide);
35 hex.rLineTo(SkIntToScalar(kHexSide), 0);
36 hex.rLineTo(SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2);
37 hex.rLineTo(-SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2);
38 hex.rLineTo(-SkIntToScalar(kHexSide), 0);
39 hex.close();
40 return hex;
49 SkPath hex = make_hex_path(0, 0);
74 canvas->drawPath(hex, fill);
75 canvas->drawPath(hex, stroke);
94 SkPath hex = make_hex_path(0, 0);
124 // The color of the filled hex is swapped to yield a different
127 canvas->drawPath(hex, ((x+y) % 3) ? whiteFill : greyFill);
128 canvas->drawPath(hex, stroke);
300 // Create a hexagon centered on the middle of the hex grid
301 SkPath hex = make_hex_path((kNumHexX / 2.0f) * kHexSide, kNumHexY * kHexSide * kRoot3Over2);
303 canvas->clipPath(hex);
312 // Create a hexagon centered on the middle of the hex grid
313 SkPath hex = make_hex_path((kNumHexX / 2.0f) * kHexSide, kNumHexY * kHexSide * kRoot3Over2);
314 hex.setFillType(SkPath::kInverseEvenOdd_FillType);
316 canvas->clipPath(hex);