Thread: drawLine()
View Single Post
  #7  
Old 01-22-2008, 11:36 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
findimg() is listed in the serverside script functions.

I always use findimg() now because I don't want to alternate between two days of doing the same thing. findimg() works for the simple and the complex and is much more readable.
Quote:
Originally Posted by Tolnaftate2004 View Post
showimg() is decidedly a function with a return value; it was not so in GS1.
There would have been no point for it returning an object in GS1. Also making it return the image object in GS2 was a good move.

So theres now 3 ways to do the same thing:
PHP Code:
// GS1
showimg(1"light3.png"3.53);
changeimgcolor(110.400);
changeimgvis(13);
// Half GS2
with (showimg(1"light3.png"3.53)) {
  
red 1;
  
green 0.4;
  
blue 0;
  
alpha 0;
  
layer 3;
}
// Full GS2
with (findimg(1)) {
  
image "light3.png";
  
thiso.3.5;
  
thiso.3;
  
red 1;
  
green 0.4;
  
blue 0;
  
alpha 0;
  
layer 3;

__________________
Reply With Quote