Different colour for orbit of dwarf planets

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
ianmacfarlane
Posts: 12
Joined: 10.04.2008
With us: 16 years 5 months

Different colour for orbit of dwarf planets

Post #1by ianmacfarlane » 16.12.2009, 14:29

Is it possible for the orbit colour for dwarf planets to be a different colour than that for the main planets? The solar system looks pretty messy if they're both the same colour :) It would be nice to be easily able to distinguish between them.

Perhaps a similar or slightly different shade of colour would be best, as they're similar types of objects.

Please take as a suggestion for the next version of Celestia - also, if this is possible to do in a configuration file in the current version, would someone mind telling me how to do this?

Many thanks

Avatar
Marco Klunder
Posts: 181
Joined: 20.02.2008
Age: 61
With us: 16 years 7 months
Location: The Netherlands

Re: Different colour for orbit of dwarf planets

Post #2by Marco Klunder » 15.04.2010, 19:32

Hello ianmacfarlane,

Probably better a late answer than no answer.
You can change the color of specific orbits, using the celestia:setlinecolor() method within e CELX script

To turn the color for Darf Planets into cyan, make a CELX: orbitcolor.celx which contains the following code:

Code: Select all

celestia:setlinecolor("dwarfplanetorbits", 0, 1, 1)

You can call it for instance each time after you startup Celestia.

The celestia:setlinecolor() method is further documented at:
http://en.wikibooks.org/wiki/Celestia/Celx_Scripting/CELX_Lua_Methods/Celx_celestia#setlinecolor

Marco
Marco Klunder
email: marco.klunder@xs4all.nl
Windows10 PD 3.0 GHz, 2 GB of RAM, Nvidia GeForce 6700 XL
Celestia161 / SVN + Lua Edu Tools v1.2 Beta9, Celestia160-ED and Celestia1621


Return to “Development”