Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

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

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

settextcolor settextcolor { color <vector> } Set the color of the text for Celestia messages and scripting messages to the given RGB color (i.e. for the print command). Notes: This method can be very useful when you zoom in on bright objects (i.e. the Sun or Mercury). When your screen is filled with the object, standard white text messages are very difficult to read. In that case changing the text color may help improve the readability of text messages. It is not possible to change the text color within the same text message. color <vector> Defines the components of the RGB values [Red Green Blue] of the color to be applied to the messages, as a vector.Values must be between 0 and 1. Default is [1 0 0]. CELX equivalent: Based on the celestia:settextcolor() method. Set the color for messages to the given RGB values in <vector>. celestia:settextcolor(<R>, <G>, <B>) Example:Set text color for Celestia and scripting messages to green. CEL: settextcolor{ color [ 0 1 0 ] } CELX: celestia:settextcolor(0, 1, 0) Back to CEL command index