This widget was written for a pixel art editor
There are a lot of different approaches to color picking and frankly, there is no perfect solution, every approach has pros and cons. I'll cover the necessary theoretical knowledge, so you could build your own.
Ready to go? Awesome! Let's start with color theory and a single panel HSL color picker