Create a new Hexagon instance.

Hexagon is a class that is a logical sublcass of Shape (thanks to the @extends tag), but in reality it is completely unrelated to Shape.

Parameters:

int sideLength The length of one side for the new Hexagon

Extends:

Shape

Examples:

var h = new Hexagon(2);
if (hasHex) { hex = new Hexagon(5); color = hex.getColor(); }