I'm trying to write a paint program using pygame. I'm using a color wheel to allow the user to choose their preferred color to draw with. First i confirm that they've clicked on the color wheel, get their location
> if colorRect.collidepoint((mx,my)) and mb[0]==1: #if clicked on colorhwheel
> pos=mx,my
I don't know how to set the x and y limits for each color, so that i can sense the color they've clicked on. here's an image of the color wheel i'm using.
https://i.stack.imgur.com/IjLZq.png
thanks for your help!