RegularPolygon constructor
Implementation
RegularPolygon({int numSides = 6, double? startAngle, Color color = WHITE})
: super(
compassDirections(
numSides: numSides,
startVec: RIGHT.rotate(
startAngle ?? (numSides % 2 == 0 ? 0 : 90 * DEGREES),
),
),
color: color,
);