Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] Hex to rgba

 
  • 0 Vote(s) - 0 Average
Pawn Hex to rgba
KarolPL
Offline

Burgershot Member
Posts: 2
Threads: 1
Joined: Apr 2020
Reputation: 0
Location: Poland
#1
2020-04-20, 01:31 PM
Hi. Does anyone have a function that changes hex to rgba? I need this function in #define
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#2
2020-04-21, 04:21 PM
Hex IS RGBA. They are both just numbers.
EvilShadeZ
Offline

Burgershot Member
Posts: 21
Threads: 5
Joined: Apr 2019
Reputation: 2
#3
2020-05-08, 03:12 PM
(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]
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode