PDA

View Full Version : shadowcolor



papou
07-24-2003, 12:02 PM
hi, i have trouble with ShadowColor("<red>","<green>","<blue>");
how to include that in Lscript?
did i have to write:
ShadowColor("<100>","<100>","<100>");
or ShadowColor("<100,100,100>");
or ShadowColor("100","100","100");
or ShadowColor("100,100,100");

do you have example please?
thank you!

riki
07-24-2003, 10:34 PM
Here's some references to color, is there an alpha value??


color = <0,255 * .5,255 * .75>;
idleTest
{
drawline(color,0,2,100,2);
26 VOLUME 2: COMMAND REFERENCE
color.x += 5;
color.y += 5;
color.z += 5;
if(color.x > 255) color.x = 0;
if(color.y > 255) color.y = 0;
if(color.z > 255) color.z = 0;

riki
07-24-2003, 10:36 PM
Here's another snippet of code from the manual which looks like it shows how color objects are created.

c1 = ctlcolor(“Color”, <100,100,100>);

riki
07-24-2003, 10:39 PM
Based on those examples I'd guess it would be something like this

shdcolor("Color", <100,100,100>);

papou
07-25-2003, 02:55 AM
thank you Riki!
but in fact, it seem to be ShadowColor(1,1,1);

hey riki, are you falling into lscript after incremental saver experience? :)

riki
07-25-2003, 03:16 AM
haha I was thinking why not :) I can give programming advice on something i know nothing about :)

papou
07-25-2003, 12:55 PM
lol

Tom Speed
07-26-2003, 10:47 PM
If you're ever stuck with Command Sequence commands, add Lscript Commander and go tweak the control which should add an entry to LS Commander, then convert to LScript in its menu.

Tom