Creating a color wheel in OpenFL

Hello. I am making a game where I need a color wheel.
Something like this:
How can I do this?

The question is a little broad, so here are some guide lines. I did long time ago a plugin for Flash and use this code as a reference to create the wheel for the hue. You need to understand the different components that define a color in this kind of wheels and after that you just need to apply the different equations. I use that code to create the wheel, and inside I added a square where you play with the other components of the colors.