For a shape with more sides, such as a hexagon, it would be necessary to define polygon points for each angle in the object. There are many ways to identify a colour when creating vector graphics.
The polygon ... by vector file formats and can be used to create a traditional circle. The line object allows for the creation of lines. More complex lines with different points can be created ...