How to draw a colorful circle with 360 colors in hsv colorspace?

Hello, guys!

I’m writing one of my experiments on working memory. At the end of each trial, I want to show the participants a color ring with 360 colors, and then ask the participants to click on a color on the color ring to recall the color they were asked to remember at the beginning. Please tell me how I can write the code to render 360 different colors in a circular stimulus, and I want the program to automatically record the coordinates of the colors in the corresponding position of the subject’s mouse click, which is the hue value of the HSV.

Any helpful suggestions would be greatly appreciated.