#define color Hex help.
#1

Hey, i'm new to scripting, and i would like to know how to make a color such as
pawn Код:
#define RED 0xFF0000FF
.

Is it the same as HTML?
EG
#EA0000
or
#CCCCCC

or is it completely different.

If you could help, thank you very much.
If your going to flame and say "use the search tool", I already have so don't waste your time typing.
Reply
#2

Yes its the same except you change '#' to '0x'
Reply
#3

thankyou

EDIT

So, if i choose the color #C60003,

i would put
pawn Код:
#define BLOODRED 0xC60003?
Or something else.
Reply
#4

The "syntax" is like normal hex, but including Alpha or Transparency

so #C60003 becomes 0xC60003FF (FF for opaque color, obviously)
Reply
#5

Quote:
Originally Posted by LarzI
Посмотреть сообщение
The "syntax" is like normal hex, but including Alpha or Transparency

so #C60003 becomes 0xC60003FF (FF for opaque color, obviously)
yeah I forgot about that.
Reply
#6

Okay sweet, thank you to both of you
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)