earth_1.ssc   earth_1.ssc 
//
// Author: Qam1 // Author: Qam1
// Version: 4.1 // Version: 5.1
// License: Public Domain // License: Public Domain
// Name: Earth best views from other bodies // Name: Earth best views from other bodies
// Description: Best views of Earth from other Solar System bodies in the 2 1st Century. // Description: Best views of Earth from other Solar System bodies in the 2 1st Century.
// //
//basics //basics
var spd = 5; // speed for screen saver mode in seconds var spd = 5; // speed for screen saver mode in seconds
StelSkyDrawer.setFlagLuminanceAdaptation(false); StelSkyDrawer.setFlagLuminanceAdaptation(false);
var o = 1; var o = 1;
var i = 1; var i = 1;
skipping to change at line 80 skipping to change at line 79
{ {
LandscapeMgr.setFlagAtmosphere(false); LandscapeMgr.setFlagAtmosphere(false);
LandscapeMgr.setFlagFog(false); LandscapeMgr.setFlagFog(false);
LandscapeMgr.setCurrentLandscapeID("moon"); LandscapeMgr.setCurrentLandscapeID("moon");
core.setDate("2061-05-31T01:04:47", "utc"); core.setDate("2061-05-31T01:04:47", "utc");
core.setObserverLocation(91.80, 44.24, 7, 1, "", "Mercury"); core.setObserverLocation(91.80, 44.24, 7, 1, "", "Mercury");
StelMovementMgr.zoomTo(90, 1); StelMovementMgr.zoomTo(90, 1);
SolarSystem.setFlagOrbits(false); SolarSystem.setFlagOrbits(false);
sd = 176
sw = 1232;
} }
if (i == 2) if (i == 2)
{ {
LandscapeMgr.setFlagAtmosphere(true); LandscapeMgr.setFlagAtmosphere(true);
LandscapeMgr.setFlagFog(true); LandscapeMgr.setFlagFog(true);
LandscapeMgr.setCurrentLandscapeID("moon"); LandscapeMgr.setCurrentLandscapeID("moon");
core.setDate("2093-12-17T12:04:47", "utc"); core.setDate("2093-12-17T12:04:47", "utc");
core.setObserverLocation(-84.7, 40.3, 50000, 1, "", "Venus") ; core.setObserverLocation(-84.7, 40.3, 50000, 1, "", "Venus") ;
StelMovementMgr.zoomTo(90, 1); StelMovementMgr.zoomTo(90, 1);
SolarSystem.setFlagOrbits(false); SolarSystem.setFlagOrbits(false);
sd = 116;
sw = 1709;
} }
if (i == 3) if (i == 3)
{ {
i = 4;
LandscapeMgr.setFlagAtmosphere(false); LandscapeMgr.setFlagAtmosphere(false);
LandscapeMgr.setFlagFog(false); LandscapeMgr.setFlagFog(false);
LandscapeMgr.setCurrentLandscapeID("moon"); LandscapeMgr.setCurrentLandscapeID("moon");
core.setDate("2023-01-21T20:57:47", "utc"); core.setDate("2023-01-21T20:57:47", "utc");
core.setObserverLocation(19.7, 39.0, 50, 1, "", "Moon"); core.setObserverLocation(19.7, 39.0, 50, 1, "", "Moon");
StelMovementMgr.zoomTo(12, 1); StelMovementMgr.zoomTo(12, 1);
SolarSystem.setFlagOrbits(false); SolarSystem.setFlagOrbits(false);
sd = 1;
sw = 7;
} }
if (i == 4) if (i == 4)
{ {
LandscapeMgr.setFlagAtmosphere(true); LandscapeMgr.setFlagAtmosphere(true);
LandscapeMgr.setFlagFog(true); LandscapeMgr.setFlagFog(true);
LandscapeMgr.setCurrentLandscapeID("mars"); LandscapeMgr.setCurrentLandscapeID("mars");
core.setObserverLocation(-175.399994, -14.48, 17, 1, "", "Ma rs"); core.setObserverLocation(-175.399994, -14.48, 17, 1, "", "Ma rs");
core.setDate("2099-07-26T04:16:00", "utc"); core.setDate("2099-07-26T04:16:00", "utc");
LandscapeMgr.setFlagAtmosphere(true); LandscapeMgr.setFlagAtmosphere(true);
StelMovementMgr.zoomTo(62, 1); StelMovementMgr.zoomTo(62, 1);
SolarSystem.setFlagOrbits(true);
sd = 1;
sw = 7;
} }
if (i == 5) if (i == 5)
{ {
LandscapeMgr.setFlagAtmosphere(false); LandscapeMgr.setFlagAtmosphere(false);
LandscapeMgr.setFlagFog(false); LandscapeMgr.setFlagFog(false);
LandscapeMgr.setCurrentLandscapeID("ocean"); LandscapeMgr.setCurrentLandscapeID("ocean");
core.setDate("2082-10-19T21:08:21", "utc"); core.setDate("2082-10-19T21:08:21", "utc");
core.setObserverLocation(-73.71, 44.24, 17, 1, "", "Ceres"); core.setObserverLocation(-73.71, 44.24, 17, 1, "", "Ceres");
StelMovementMgr.zoomTo(42, 1); StelMovementMgr.zoomTo(42, 1);
sd = 1;
sw = 7;
} }
if (i == 6) if (i == 6)
{ {
LandscapeMgr.setFlagAtmosphere(true); LandscapeMgr.setFlagAtmosphere(true);
LandscapeMgr.setFlagFog(true); LandscapeMgr.setFlagFog(true);
LandscapeMgr.setCurrentLandscapeID("saturn"); LandscapeMgr.setCurrentLandscapeID("saturn");
core.setDate("2058-07-15T11:52:00", "utc"); core.setDate("2058-07-15T11:52:00", "utc");
core.setObserverLocation(-73.71, 44.24, 71492000, 1, "", "Ju piter"); core.setObserverLocation(134.71, 27.24, 71492000, 1, "", "Ju piter");
StelMovementMgr.zoomTo(34, 1); StelMovementMgr.zoomTo(34, 1);
txt1 = LabelMgr.labelScreen("Elongation: 11.849 degrees", 15 0, 10, false, 15, "#AAFFAA"); txt1 = LabelMgr.labelScreen("Elongation: 11.849 degrees", 50 0, 10, false, 25, "#AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
if (i == 7) if (i == 7)
{ {
LandscapeMgr.setFlagAtmosphere(true); LandscapeMgr.setFlagAtmosphere(true);
LandscapeMgr.setFlagFog(true); LandscapeMgr.setFlagFog(true);
LandscapeMgr.setCurrentLandscapeID("saturn"); LandscapeMgr.setCurrentLandscapeID("saturn");
core.setDate("2031-09-16T10:48:57", "utc"); core.setDate("2031-09-16T10:48:57", "utc");
core.setObserverLocation(-73.71, 9.24, 200000, 1, "", "Satur n"); core.setObserverLocation(-73.71, 9.24, 200000, 1, "", "Satur n");
core.wait(0.1); core.wait(0.1);
StelMovementMgr.zoomTo(28, 1); StelMovementMgr.zoomTo(28, 1);
txt1 = LabelMgr.labelScreen("Elongation: 6.343 degrees", 150 , 10, false, 15, "#AAFFAA"); txt1 = LabelMgr.labelScreen("Elongation: 6.390 degrees", 500 , 10, false, 25, "#AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
if (i == 8) if (i == 8)
{ {
LandscapeMgr.setFlagAtmosphere(true); LandscapeMgr.setFlagAtmosphere(true);
LandscapeMgr.setFlagFog(true); LandscapeMgr.setFlagFog(true);
LandscapeMgr.setCurrentLandscapeID("saturn"); LandscapeMgr.setCurrentLandscapeID("saturn");
core.setDate("2052-06-16T11:00:00", "utc"); core.setDate("2052-06-16T11:00:00", "utc");
core.setObserverLocation(-76.73, 76.92, 30268000, 1, "", "Ur anus"); core.setObserverLocation(-76.73, 76.92, 30268000, 1, "", "Ur anus");
StelMovementMgr.zoomTo(15.6, 1); StelMovementMgr.zoomTo(15.6, 1);
txt1 = LabelMgr.labelScreen("Elongation: 3.185 degrees", 150 , 10, false, 15, "#AAFFAA"); txt1 = LabelMgr.labelScreen("Elongation: 3.186 degrees", 500 , 10, false, 25, "#AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
sd = 1;
sw = 7;
} }
if (i == 9) if (i == 9)
{ {
LandscapeMgr.setFlagAtmosphere(true); LandscapeMgr.setFlagAtmosphere(true);
LandscapeMgr.setFlagFog(true); LandscapeMgr.setFlagFog(true);
LandscapeMgr.setCurrentLandscapeID("saturn"); LandscapeMgr.setCurrentLandscapeID("saturn");
core.setDate("2035-07-17T15:00:00", "utc"); core.setDate("2035-07-17T15:00:00", "utc");
core.setObserverLocation(76.71, 41.24, 24764000, 1, "", "Nep tune"); core.setObserverLocation(76.71, 1.24, 24764000, 1, "", "Nept une");
StelMovementMgr.zoomTo(10.6, 1); StelMovementMgr.zoomTo(10.6, 1);
txt1 = LabelMgr.labelScreen("Elongation: 1.952 degrees", 150 , 10, false, 15, "#AAFFAA"); txt1 = LabelMgr.labelScreen("Elongation: 1.952 degrees", 500 , 10, false, 25, "#AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
sd = 1;
sw = 7;
} }
if (i == 10) if (i == 10)
{ {
LandscapeMgr.setFlagAtmosphere(false); LandscapeMgr.setFlagAtmosphere(false);
LandscapeMgr.setFlagFog(false); LandscapeMgr.setFlagFog(false);
LandscapeMgr.setCurrentLandscapeID("moon"); LandscapeMgr.setCurrentLandscapeID("moon");
core.setDate("2000-09-01T12:35:49", "utc"); core.setDate("2000-09-01T12:35:49", "utc");
core.setObserverLocation(113.49, 31.04, 76, 1, "", "Pluto"); core.setObserverLocation(113.49, 31.04, 76, 1, "", "Pluto");
StelMovementMgr.zoomTo(25, 1); StelMovementMgr.zoomTo(25, 1);
txt1 = LabelMgr.labelScreen("Elongation: 0.952 degrees", 150 , 10, false, 15, "#AAFFAA"); txt1 = LabelMgr.labelScreen("Elongation: 1.908 degrees", 500 , 10, false, 25, "#AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
var d = Math.floor(core.getJDay()); var d = Math.floor(core.getJDay());
var r = d;
var r = d;
var pak = 0; var pak = 0;
if (ss ==1) if (ss ==1)
{ {
while (pak < spd) while (pak < spd)
{ {
core.wait(0.25); core.wait(0.25);
pak = pak + 1; pak = pak + 1;
r = Math.floor(core.getJDay()); r = Math.floor(core.getJDay());
if (Math.abs(r-d) > 0) if (Math.abs(r-d) > 0)
{ {
pak = spd + 1; pak = spd + 1;
core.setDate("+100 days"); core.setDate("+2000 days");
} }
} }
r = Math.floor(core.getJDay()) + 1; r = Math.floor(core.getJDay()) + 1;
if (i < 3) // why??
{
i = i + 1;
}
if (i == 10) // Why??
{
i = i + 1;
}
}
if (i == 90)
{
var d = Math.floor(core.getJDay()*10);
var r = d;
while (d == r)
{
r = Math.floor(core.getJDay()*10);
}
if (r > d)
{
d = d / 10;
r = d + 1;
}
else
{
d = d / 10;
r = d - 1;
}
txt1 = LabelMgr.labelScreen(r, 400, 20, false, 25, "#F6A101");
LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(d, 400, 60, false, 25, "#F6A101");
LabelMgr.setLabelShow(txt1, true)
core.wait(3);
}
else
{
while (d == r)
{
r = Math.floor(core.getJDay());
}
}
if (i < 3) // Merc & venus
{
sw = 1000
if ( r - d > 10)
{
if (r - d < 1000)
{
i = i + 1;
}
}
if (r - d < - 10)
{
if (r - d > -1000)
{
i = i - 1;
}
}
if (r - d < -1000)
{
o = o * -1;
}
}
else
{ // Mars - Neptune
sw = 2;
if (i > 2)
{
if (i < 10)
{
if ( r - d == 1)
{
i = i + 1;
}
if ( r - d == -1)
{
if (i == 4)
{
i = 2
}
else
{
i = i - 1;
}
}
if (r - d < -2)
{
o = o * -1;
} }
while (d == r) }
else // pluto
{
// swap
sw = 20
if ( r - d > 1)
{
if (r - d < 20)
{ {
r = Math.floor(core.getJDay()); i = i + 1;
}
} }
if (r - d == 1) if (r - d < - 1)
{ {
i = i + 1; if (r - d > -20)
{
i = i - 1;
}
} }
if (r - d == -1) if (r - d < -20)
{ {
i = i - 1; o = o * -1;
} }
}
}
}
if (i < 1) if (i < 1)
{ {
i = 10; i = 10;
} }
if (i > 10) if (i > 10)
{ {
i = 1; i = 1;
} }
if (r - d == -7)
{
o = o * -1;
}
//toggle screen saver //toggle screen saver
if (r - d > 6) if (r - d > sw)
{ {
ss = ss + 1; ss = ss + 1;
if (ss == 2) if (ss == 2)
{ {
ss = 0; ss = 0;
txt1 = LabelMgr.labelScreen("Screensaver Mode off", 400, 20, false, 25, "#F6A101"); txt1 = LabelMgr.labelScreen("Screensaver Mode off", 400, 20, false, 25, "#F6A101");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
core.wait(1); core.wait(1);
} }
 End of changes. 30 change blocks. 
23 lines changed or deleted 186 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/