I want to contribute something that is not that big of a deal #41
Replies: 2 comments 8 replies
-
Raylib does support hex code colours with the GetColor function, but Raylib expects them to be unsigned while Python ints are signed so you have to convert. Might be worth modifying Pyray to do this automatically. For now here is a demo of how to do it
|
Beta Was this translation helpful? Give feedback.
-
As for adding pre-defined colours, we use the same list that Raylib does. If you think there should be more then you would need to get them added at https://github.com/raysan5/raylib/blob/7749a2805c0f28762c206da0b7c954cbe9e318e2/src/raylib.h#L145 You can publish your own separate module with your own new colours in it of course. |
Beta Was this translation helpful? Give feedback.
-
Well I was looking around the binding and The colors are few to say the least, And It doesn't support "Hex code" So I thought It might help If I add a function that gets a Hex code as a color also I would Like to add the 140 default colors that come with the HTML language So people have a lot more colors to work with.
Edit: The hex code could have Transparency Info and It would still work the way it is intended to work*
Beta Was this translation helpful? Give feedback.
All reactions