Search notes:

Stellarium API: LabelMgr.labelScreen

The labelScreen function adds text to a scene that is shown in Stellarium.
//  vim: ft=javascript
//
//  ..\..\runScript.bat labelScreen.ssc
//  


//
// Go to Irchelturm
//
core.setObserverLocation(
    8 + 36/60 + 25.85/60/60,
   47 + 32/60 + 21.48/60/60,
    0,
    0,
   "Irchelturm",
   "Earth"       // This parameter seems necessary
);

core.setJDay(2456653.678472);

var x        = 20;
var y        = 30;
var fontSize = 50;

var lbl = LabelMgr.labelScreen("View from Irchelturm", x, y, true, fontSize, "#ffc08b");
Github repository about-Stellarium, path: /API/LabelMgr/labelScreen.ssc

See also

Stellarium Script API

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Wissensc...', 1758201388, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Wissenschaft/Astronomie/tools/Stellarium/script/API/LabelMgr/labelScreen(68): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78