Changing constellation labels color

Asked by Jean-Raphaël Gilis

Hi, I would like to change constellation labels color but I have difficulties to find the right syntax with setLabelsColor().
Can you help me ? Thanks a lot

Question information

Language:
English Edit question
Status:
Solved
For:
Stellarium Edit question
Assignee:
No assignee Edit question
Solved by:
Jean-Raphaël Gilis
Solved:
Last query:
Last reply:
Revision history for this message
Alexander Wolf (alexwolf) said :
#1

*_color will be set the colour of the different lines in RGB values, where 1 is the maximum, e.g. 1.0,1.0,1.0 for white

Revision history for this message
Jean-Raphaël Gilis (gilis) said :
#2

Thanks for your answer.
But when I run Stellarium 0.11.1, set the constellation labels on, open the script console, and type

ConstellationMgr.setLabelsColor(1.0,1.0,1.0);

Constellation labels disappear instead of being white. Why ?

Revision history for this message
Khalid AlAjaji (kajaji) said :
#3

try something like this:

clrs["r"] = 0.9;
clrs["g"] = 0.4;
clrs["b"] = 0.6;
ConstellationMgr.setLabelsColor(clrs);

Revision history for this message
Jean-Raphaël Gilis (gilis) said :
#4

Thanks Khalid, it works when I initialize clrs, like this :

clrs = [ ];
clrs["r"] = 0.9;
clrs["g"] = 0.4;
clrs["b"] = 0.6;
ConstellationMgr.setLabelsColor(clrs);

Thanks to all