Python Forum
How do you set the alpha of a color???
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you set the alpha of a color???
#7
I was trying to overlay the image onto rectangles I drew with draw.rect. I was trying to find an alternate way to lighten and darken colors that didn't cause colors such as orange to shift to another color. That green box was originally black btw.

Guess I'll re-write the program with this 'surface' thing and see if that gives me what I want.

Well, that works now. Thank you. I thought I was going to have to re-write the entire program, but realized that I could just leave the color rectangles and just change the 'shaders'. Mixing in grey seems to give me odd results, but that's why I'm making such a program. I'm trying to find a color palette I like for my games. So far, haven't had much luck.
Reply


Messages In This Thread
RE: How do you set the alpha of a color??? - by xBlackHeartx - Jan-15-2020, 04:21 AM

Forum Jump:

User Panel Messages

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