Page 1 of 1

Color parameter

Posted: Mon Jan 14, 2013 6:33 pm
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.

Re: Color parameter

Posted: Mon Jan 14, 2013 6:42 pm
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