Python Forum
Making a colour field
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making a colour field
#9
(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 Heart Heart
Reply


Messages In This Thread
Making a colour field - by Leo_Red - Jan-20-2021, 01:48 PM
RE: Making a colour field - by BashBedlam - Jan-21-2021, 03:49 AM
RE: Making a colour field - by Leo_Red - Jan-21-2021, 05:32 AM
RE: Making a colour field - by BashBedlam - Jan-21-2021, 02:33 PM
RE: Making a colour field - by Leo_Red - Jan-21-2021, 03:50 PM
RE: Making a colour field - by BashBedlam - Jan-21-2021, 05:31 PM
RE: Making a colour field - by Leo_Red - Jan-22-2021, 05:37 AM
RE: Making a colour field - by BashBedlam - Jan-22-2021, 02:05 PM
RE: Making a colour field - by Leo_Red - Jan-22-2021, 03:27 PM
RE: Making a colour field - by BashBedlam - Jan-22-2021, 04:00 PM
RE: Making a colour field - by Leo_Red - Jan-22-2021, 04:07 PM
RE: Making a colour field - by BashBedlam - Jan-22-2021, 04:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't change the colour of Tk button text Pilover 6 15,100 Nov-15-2022, 10:11 PM
Last Post: woooee
  [Tkinter] changing the frame colour nick123 4 16,793 Jul-24-2020, 07:32 AM
Last Post: LegacyCoding

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020