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

setlinecolor
setlinecolor { item  color   } 

Set the color of lines to the given RGB color.

CELX equivalent:

Based on the celestia:setlinecolor method.


 * Set the color for lines of  to the given RGB values in .

celestia:setlinecolor(, , , )

Example: Set the color of the galacticgrid to CYAN and turn galacticgrid on.

CEL:

setlinecolor { item "galacticgrid" color [ 0 1 1 ] } renderflags { set "galacticgrid" }

CELX:

celestia:setlinecolor("galacticgrid", 0, 1, 1) celestia:setrenderflags{galacticgrid = true}

Back to CEL command index