An efficient utility class for drawing regular polygons on a Canvas
.
Consumers can specify:
- number of sides (≥ 3);
- center coordinates;
- outer radius (center to vertex);
- corner rounding radius;
- polygon rotation;
- fill/stroke
Paint
.
from The Android Arsenal
No comments:
Post a Comment