How do i convert colors
#1

I forgot how to do this
when i take something from colorpicker.com
how do i convert it into samp color?

Thanks
Reply
#2

For example: #1B6DE0

pawn Код:
#define Blue 0x1B6DE0FF
Add '0x' in front of the hex code and 'FF' at the end of the hex.
Reply
#3

actually FF is the transperecy value when you want a lower alpha you should edit that

Код:
0xRRGGBBAA.
RR is the red part of the color, GG the green and BB the blue. AA is the alpha value
and indeed 0x is for pawn colors in front of it
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)