How are colors represented?

Everything about Modding TE2013, from new courts to the modifications of the player & tournament bases (and including all the bugs they may be creating ! ;) )
Forum rules
Speak English in 1st page of topics, and don't hijack topics, troll, use profanities nor insults

How are colors represented?

Postby obdz » 17 Dec 2021, 23:52

Hi,

I am trying to shadow color, but the code used for color (0xAF000000) is not used anywhere else.

How does this color code work? And how can I convert RGB into this?

Thanks
obdz
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 225
Gaming Since: 01 Feb 2017, 21:51

Re: How are colors represented?

Postby manutoo » 18 Dec 2021, 07:17

Hello,

format = 0xAARRGGBB
A = Alpha
R = Red
G = Green
B = Blue
Each is a hexadecimal number from 00 to FF.
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 17407
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: How are colors represented?

Postby obdz » 18 Dec 2021, 22:15

Thanks
obdz
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 225
Gaming Since: 01 Feb 2017, 21:51

Re: How are colors represented?

Postby obdz » 19 Dec 2021, 22:40

If I lower the alpha, the opacity of the shadow will get lower right?
obdz
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 225
Gaming Since: 01 Feb 2017, 21:51

Re: How are colors represented?

Postby manutoo » 20 Dec 2021, 07:36

Yes.
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 17407
Gaming Since: 24 Jan 2004, 15:38
Location: France


Return to Modding - TE2013

Who is online

Users browsing this forum: CCBot [Bot] and 4 guests