[Celestia-developers] setting individual constellation color in celx
Real-time 3D visualization of space
Status: Beta
Brought to you by:
cjlaurel
From: vincent <vin...@fr...> - 2008-05-25 08:11:31
|
As Chris suggested on the forum ( http://www.shatters.net/forum/viewtopic.php?t=12085&start=40 ), the following patch adds the celestia:setconstellationcolor and celestia:unsetconstellationcolor methods to celx scripting: http://vincent.gian.club.fr/celestia/constellationcolor.patch To keep consistent with show/hideconstallation, the fourth argument of setconstellationcolor -- the list of constellation names -- is a table. Examples: -- Make all constellations blue celestia:setconstellationcolor(0, 0, 1) -- Make Leo and Virgo red celestia:setconstellationcolor(1, 0, 0, {"Leo", "Virgo"}) -- Make zodiacal constellations green zodiac = {"Pisces", "Aries", "Taurus", "Gemini", "Cancer", "Leo", "Virgo", "Libra", "Scorpius", "Ophiuchus", "Sagittarius", "Capricornus", "Aquarius"} celestia:setconstellationcolor(0, 1, 0, zodiac) -- Set all constellation colors back to the default celestia:unsetconstellationcolor() @+ Vincent |