Color parameter

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Color parameter

Post by enric »

The colourString parameter value.

//render the string to the screen. colourString is a hex value …
RenderString(x, y, font, colourString, [borderColourString], [width], [height])

Usually a RGB color is a three hex number like FF0000. FF means full red and 00 no Green and 00 no Blue
But in BA there are four hex number like ff ff 00 00, what is the first hex value?
Sorry, I'm not strong on graphics.
pipfromslitherine
Site Admin
Site Admin
Posts: 9928
Joined: Wed Mar 23, 2005 10:35 pm

Re: Color parameter

Post by pipfromslitherine »

It's the alpha value. For some (most) uses in the scripting it allows you to control how transparent the thing being shown is. If you want something to be fully visible, just use FF for it, using 00 will make something invisible, while 80 would be half-transparent.

Cheers

Pip
Post Reply

Return to “Battle Academy : Modders Corner ”