Celestia/Celx Scripting/CELX Lua Methods/CEL command constellationcolor

constellationcolor
constellationcolor { set|clear  color  } 

Set the color of individual constellations defined in  to the given  color, -- OR -- Clear the color of individual constellations defined in  to the original Celestia color.

Note:
 * 1) Besides setting or clearing the color of the constellation(s), this command also takes effect on the constellation name(s).
 * 2) The renderflags { set "constellations" } command must be given prior to this command to enable rendering of constellations.

CELX equivalent:

Based on the celestia:setconstellationcolor method.


 * Define a table containing the name(s)  of the constellation(s) on which the color change must be applied.

table = {"name1", "name2"}


 * Extract the RGB values from  and place them as parameter 1, 2 and 3 in the celestia:setconstellationcolor method, followed by the constellation name(s) table as 4th parameter.

celestia:setconstellationcolor(, , , table)

Summarized:

table = {"name1", "name2"} celestia:setconstellationcolor(, , , table)

Example: Show all zodiacal constellations in yellow

CEL:

renderflags { set "constellations" } constellationcolor { set "Pisces Aries Taurus Gemini Cancer Leo Virgo Libra                             Scorpius Ophiuchus Sagittarius Capricornus Aquarius" color [1 1 0] }

CELX:

celestia:setrenderflags{constellations = true} zodiac = {"Pisces", "Aries", "Taurus", "Gemini", "Cancer", "Leo", "Virgo", "Libra", "Scorpius", "Ophiuchus", "Sagittarius", "Capricornus", "Aquarius"} celestia:setconstellationcolor(1, 1, 0, zodiac)

Back to CEL command index