defining colors help
#1

i need help to define some colors in pawno but i don't know how i can do that, i need some help here thanks
Reply
#2

pawn Код:
#define blue 0x0000F6AA
#define aqua 0x21F2B4AA
#define purple 0x923BE2AA
#define green 0x21F600AA
#define yellow 0xF6F600AA
#define red 0xF60010AA
#define orange 0xF69521AA
#define pink 0xF600F6AA
#define brown 0xB43900AA
#define maroon 0xBB3192AA
#define dark_blue 0x00009BAA
#define dark_green 0x007200AA
#define dark_red 0x940000AA
#define white 0xF6F6F6AA
#define black 0x000000AA
#define light_blue 0x00F6F6AA
#define dark_aqua 0x008D8EAA
#define dark_yellow 0xD9D600AA
#define pitch_black 0x00000000
#define pale_blue 0xC9B0F6AA
#define gray 0x636364AA
#define pale_red 0xF67E7EAA
#define pale_green 0xABF6AAAA
#define pale_yellow 0xF6F6AAAA
#define pale_purple 0xC292C0AA
#define xdark_blue 0x0000AFAA
#define xdark_red 0xB10000AA
#define xdark_green 0x008C00AA
#define xdark_yellow 0x8D8C00AA
#define dark_gray 0x7F7F7FAA
#define ugly_green 0x7FF67FAA
#define ugly_red 0xF67F7FAA
#define ugly_blue 0x7F7FF6AA
#define ugly_pink 0xF67FF6AA
#define ugly_yellow 0xF6F281AA
Reply
#3

thanks, when i tryed to convert my RGB color to hex color i got this code B8E6E2, is this B8E6E2 a hex color? if no then how i can convert my RGB color into these kind of hex colors:

0x923BE2AA
0x21F600AA
0xF6F600AA
0xF60010AA
0xF69521AA
0xF600F6AA
0xB43900AA
0xBB3192AA
0x00009BAA
0x007200AA
0x940000AA
0xF6F6F6AA
0x000000AA
0x00F6F6AA
0x008D8EAA
0xD9D600AA
0x00000000
0xC9B0F6AA
0x636364AA
0xF67E7EAA
Reply
#4

Quote:
Originally Posted by \\ BlenderBoy //
Посмотреть сообщение
thanks, when i tryed to convert my RGB color to hex color i got this code B8E6E2, is this B8E6E2 a hex color? if no then how i can convert my RGB color into these kind of hex colors:

0x923BE2AA
0x21F600AA
0xF6F600AA
0xF60010AA
0xF69521AA
0xF600F6AA
0xB43900AA
0xBB3192AA
0x00009BAA
0x007200AA
0x940000AA
0xF6F6F6AA
0x000000AA
0x00F6F6AA
0x008D8EAA
0xD9D600AA
0x00000000
0xC9B0F6AA
0x636364AA
0xF67E7EAA
Try this:

http://www.yellowpipe.com/yis/tools/...-converter.php
Reply
#5

i tryed that site to and is converting same into this kind of code B8E6E2
Reply
#6

Just add 0x to the front of it and add AA to the end. Or, if you want to play with transparency you can use other values on the end.
Reply
#7

When you got your HEX color go on PAWNo editor at the top of your script where you define things.
Let's say you got this HEX color: B8E6E2 so you will type
pawn Код:
#define COLOR_AQUA (0xB8E6E2AA)
Do you understand? you ad "0x" at the begining so B8E6E2 -> 0xB8E6E2 And "AA" at the end so
0xB8E6E2-> 0xB8E6E2AA Where AA is the alpha of the color (transparency) I hope I helped you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)