celx: add titles for examples

pull/110/head
Hleb Valoshka 2018-05-08 18:51:06 +03:00
parent ee43f559a0
commit 4c93f8b948
5 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,5 @@
-- Title: Toggle Eclipic Grid
t = {} -- create table
t.equatorialgrid = false
t.galacticgrid = false

View File

@ -1,3 +1,5 @@
-- Title: Toggle Galactic Grid
t = {} -- create table
t.equatorialgrid = false
t.galacticgrid = not celestia:getrenderflags().galacticgrid

View File

@ -1,3 +1,5 @@
-- Title: Toggle Horizontal Grid
t = {} -- create table
t.equatorialgrid = false
t.galacticgrid = false

View File

@ -1,3 +1,5 @@
-- Title: Mark all D stars
function mark_spectraltype(x)
local obs = celestia:getobserver()
local nstars = celestia:getstarcount()

View File

@ -1,3 +1,5 @@
-- Title: Tour around Solar system objects
function gotoobject(o, t)
local obs = celestia:getobserver()
obs:follow(o)