Python Forum
Making a colour field
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making a colour field
#11
(Jan-22-2021, 04:00 PM)BashBedlam Wrote: A single image with every color value would have to contain at least 16,581,375 pixels. In your illustration of the gimp color selector the outer ring selects the basic color and the inner triangle selects the hue. I've never attempted anything like that so I don't think I can help. I can say that if you want that small ring indicating where on the triangle the hex value will land, you will have to use a list or dictionary to map out every pixel on that triangle and then use those coordinates to place the indicator.
A less ambitious approach would be to offer a pallet of ten or twenty colors with the option to add ten or twenty "cumtom" colors entered by the user as hex values. Something like this : [Image: palette.png]

Yes you are right, but I have gone too into it that, I want to continue it. I am not using a colour wheel with a ring and a triangle, it is just a simple colour wheel like the one I showed in by first thread. I am going to find a solution tomorrow and let you know if it worked. On a side note, is there a colour wheel or colour picker in one of the pygame’s GUI libraries? As a backup if nothing works out. Thank you again for helping me ❤️❤️
Reply
#12
(Jan-22-2021, 04:07 PM)Leo_Red Wrote: On a side note, is there a colour wheel or colour picker in one of the pygame’s GUI libraries?
Sorry, I am not aware of anything like this in the pygame package itself.
Leo_Red likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't change the colour of Tk button text Pilover 6 14,815 Nov-15-2022, 10:11 PM
Last Post: woooee
  [Tkinter] changing the frame colour nick123 4 16,627 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