Create a new Hexagon instance.
Hexagon is a class that is a logical sublcass of
{@link Shape} (thanks to the @extends
tag), but in
reality it is completely unrelated to Shape.
int | sideLength | The length of one side for the new Hexagon |
Shape
var h = new Hexagon(2); |
if (hasHex) { hex = new Hexagon(5); color = hex.getColor(); } |