how to create a color picker?

hey im new with unity and i m trying to create a color picker but it doesn’t work can u help me with the script please . thank you

  1. Create gradient texture
  2. Create Plane and atach texture to it
  3. Add on mouse click listener to it and use GetPixel and read the click position.