MDN link: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Colors/Color_picker_tool
About this color selector, how to calculate the X, y coordinates and calculate the hue, saturation, lightness and brightness according to the X, y coordinates? Is there a fixed formula?
Get the X coordinate: ((this.color.sat * size) / 100) | 0
Get the Y coordinate: (size - (value * size) / 100) | 0
The lightness is calculated according to the Y coordinate: (100 - (y * 100) / width) | 0
The saturation is calculated according to the X coordinate: ((x * 100) / width) | 0
How do you get these four formulas? Is it a fixed formula? Can you provide a reference link if you can?