OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: illmatic on 03 Feb 2004, 17:51:58

Title: need code for pink text :D
Post by: illmatic on 03 Feb 2004, 17:51:58
             text="[HOMICIDE V1.0]";
         colorText[]={F.F.3.3.9.9};
         font="TahomaB48";
         size=2;
             x=0.1;
             y=0.9;
             w=0.8;
             h=0.1;

just a snippet from my des.ext, anyone no the code for pink!!?!?!!? ty if u know it!!!!  8) 8) 8)
Title: Re:need code for pink text :D
Post by: Welshmanizer on 03 Feb 2004, 20:33:44
The syntax of colorText[] is as follows:

colorText[]={R,G,B,A};

R = Intensity of Red (0 to 1)
G = Intensity of Green  (0 to 1)
B = Intensity of Blue (0 to 1)
A = Alpha: the opacity of the color (0 to 1). 0 is fully transparent, 1 is fully opaque.

Therefore, as pink equals Red + Blue, pink will be:

colorText[]={1,0,1,1};

Alter the vaues of R and B for different shades.
Title: Re:need code for pink text :D
Post by: illmatic on 03 Feb 2004, 21:26:50
ty, works perfect for my pimp script