[mapserver-users] Colors through mapscript
Vinko Vrsalovic
v at w.cl
Fri Jul 5 13:28:45 PDT 2002
Hi:
I've been trying to change the color of a class with PHP/MS 3.5. The
docs for classObj say that color is an int, how can you
make that int from the three rgb values?
I've tried this:
$class->set("color",$r." ".$g." ".$b);
It changes the color, but not to the rgb combination specified.
and this:
$class->set("color",$r.$g.$b);
But that doesn't work either.
What is the proper way to do it?
Thank you,
--
V. <v at w.cl>
More information about the MapServer-users
mailing list