Jan-22-2021, 03:27 PM
(Jan-22-2021, 02:05 PM)BashBedlam Wrote: What do you mean when you say "the color field is still showing green"? Did you change the image to show only green? Is the cursor on a green pixel? Clicking on a pixel does not change anything it only reports the position and color values. Entering hex values does not change the color field image.
Yes, I want the cursor on that pixel. Here is a image of what I need:
First image: https://drive.google.com/file/d/15aYWuf-...sp=sharing
This is the colour wheel in GIMP
Second image: https://drive.google.com/file/d/1dfyIodQ...sp=sharing
When I change the RGB slider, the wheel changes to show that colour. In my case, it is HEX value instead of the RGB slider.
So, I have also found a way to get the location of the pixel on the colour wheel. Now, another problem, all the images I used don't have pure values, like it does not have 0, 255, 0 (green) instead it is 1, 255, 3. So, if the user inputs 0, 255, 0 (HEX: #00FF00), the program wouldn't be able to find that colour and give an error. I tried making one using the PIL lib and then saving that created image, still not fixed. So, is there a format that retain all the pixel values or any way to draw one on a surface in pygame? Really thank for helping