Example using HTML canvas element

Draw a polygon with a specified number of sides. Next (optionally) clear the canvas and specify a hue to see its position on a colour wheel. Lastly draw a color wheel with a given number of sides.


Program output -