• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Hex to rgba
#1
Hi. Does anyone have a function that changes hex to rgba? I need this function in #define
  Reply
#2
Hex IS RGBA. They are both just numbers.
  Reply
#3
(2020-04-21, 04:21 PM)Y_Less Wrote: Hex IS RGBA. ?They are both just numbers.



I think he meant converting an RGBA hex colour into 4 separate integer variables representing each channel.



@OP This include has a function called HexToInt that does exactly that.

https://github.com/Gammix/Colors-Library-Include
[Image: qPwh60X.png]

  Reply


Forum Jump: