411 REFERENCE · Wikibooks
Celestia/Celx Scripting/CELX Lua Methods/CEL command setlabelcolor
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
setlabelcolor
setlabelcolor { item <labelstring> color <vector> }
Set the color of labels to the given RGB color.
item <labelstring> A string describing the label of which the color must change. Must be one of:
asteroids
comets
constellations
dwarfplanets
eclipticgrid
equatorialgrid
galacticgrid
galaxies
globulars
horizontalgrid
locations
minormoons
moons
nebulae
openclusters
planetographicgrid
planets
spacecraft
stars
color <vector> Defines the components of the RGB values [Red Green Blue] of the color to be applied to the labels, as a vector.Values must be between 0 and 1. Default is [1 0 0].
CELX equivalent:
Based on the celestia:setlabelcolor() method.
Set the color for labels of <labelstring> to the given RGB values in <vector>.
celestia:setlabelcolor(<labelstring>, <R>, <G>, <B>)
Example:Set the label color for stars to RED and turn star labels on.
CEL:
setlabelcolor { item "stars" color [ 1 0 0 ] }
labels { set "stars" }
CELX:
celestia:setlabelcolor("stars", 1, 0, 0)
celestia:setlabelflags{stars = true}
Back to CEL command index