earth_3.ssc   earth_3.ssc 
// Author: Qam1 // Author: Qam1
// Name: Earth Events from a floating city on Venus // Name: Earth Events from a floating city on Venus
// License: Public Domain // License: Public Domain
// Version: 7.0 // Version: 8.0
// Description: Earth Events from a floating city on Venus // Description: Earth Events from a floating city on Venus
// Made on Stellarium 0.14.0 // Made on Stellarium 0.14.1
spd = 3; // speed for screen saver mode in seconds spd = 3; // speed for screen saver mode in seconds
long = -73.4 long = -73.4
lat = 30.1 lat = 30.1
y = core.getScreenHeight()/768; y = core.getScreenHeight()/768;
x = core.getScreenWidth()/1024; x = core.getScreenWidth()/1024;
wt = 0.05; wt = 0.05;
q = 0; q = 0;
skipping to change at line 79456 skipping to change at line 79456
txt1 = LabelMgr.labelScreen(" Regulus", 750 * x, (sty+420)*y, false, 15, "#F9E397"); txt1 = LabelMgr.labelScreen(" Regulus", 750 * x, (sty+420)*y, false, 15, "#F9E397");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(" Spica", 750 * x, (sty+440)*y, false, 15, "# F9E397"); txt1 = LabelMgr.labelScreen(" Spica", 750 * x, (sty+440)*y, false, 15, "# F9E397");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(" Trifid Nebula", 750 * x, (sty+460)*y, false , 15, "#F9E397"); txt1 = LabelMgr.labelScreen(" Trifid Nebula", 750 * x, (sty+460)*y, false , 15, "#F9E397");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(" Visible Planets", 750 * x, (sty+480)*y, fals e, 15, "#F9E397"); txt1 = LabelMgr.labelScreen(" Planets", 750 * x, (sty+480)*y, false, 15, " #F9E397");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(" Mercury", 750 * x, (sty+500)*y, false, 15, "#F9E397"); txt1 = LabelMgr.labelScreen(" Mercury", 750 * x, (sty+500)*y, false, 15, "#F9E397");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(" Mars", 750 * x, (sty+520)*y, false, 15, "#F 9E397"); txt1 = LabelMgr.labelScreen(" Mars", 750 * x, (sty+520)*y, false, 15, "#F 9E397");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(" Jupiter", 750 * x, (sty+540)*y, false, 15," #F9E397"); txt1 = LabelMgr.labelScreen(" Jupiter", 750 * x, (sty+540)*y, false, 15," #F9E397");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
skipping to change at line 79598 skipping to change at line 79598
LandscapeMgr.setFlagAtmosphere(true); LandscapeMgr.setFlagAtmosphere(true);
LandscapeMgr.setFlagLandscape(true); LandscapeMgr.setFlagLandscape(true);
p = 0; p = 0;
// Label // Label
if (ss == 0) if (ss == 0)
{ {
txt1 = LabelMgr.labelScreen("Press + for next event", 700 * x, 400*y, false , 15, "#FF0000"); txt1 = LabelMgr.labelScreen("Press = for next event", 700 * x, 400*y, false , 15, "#FF0000");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Press - for previous event", 700*x, 440*y, fa lse,15, "#FF0000"); txt1 = LabelMgr.labelScreen("Press - for previous event", 700*x, 420*y, fa lse,15, "#FF0000");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Press [ go back to start date ", 700*x, 460*y ,false, 15, "#FF0000"); txt1 = LabelMgr.labelScreen("Press [ go back to start date ", 700*x, 460*y ,false, 15, "#FF0000");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Press ] go back to Main Menu", 700*x, 480*y, false, 15, "#FF0000"); txt1 = LabelMgr.labelScreen("Press ] go back to Main Menu", 700*x, 480*y, false, 15, "#FF0000");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
skipping to change at line 80568 skipping to change at line 80568
// Earth set // Earth set
N = 76.6799 + 0.0000246590 * d N = 76.6799 + 0.0000246590 * d
ii = 3.3946 + 0.0000000275 * d ii = 3.3946 + 0.0000000275 * d
w = 54.8910 + 0.0000138374 * d w = 54.8910 + 0.0000138374 * d
a = 0.723330 a = 0.723330
e = 0.006773 - 0.000000001302 * d e = 0.006773 - 0.000000001302 * d
Me = 48.0052 + 1.6021302244 * d Me = 48.0052 + 1.6021302244 * d
Pet = 0 Pet = 0
pety = 0 pety = 0
if (Me<0)
{
while (Me >0)
{
Me = Me + 360;
}
}
if (Me>360)
{
while (Me <360)
{
Me = Me - 360;
}
}
Mj = Me * rad; Mj = Me * rad;
if (Me<0)
{
while (Me >0)
{
Me = Me + 360;
}
}
if (Me>360)
{
while (Me <360)
{
Me = Me - 360;
}
}
Ms = Me * rad; Ms = Me * rad;
if (Me<0)
{
while (Me >0)
{
Me = Me + 360;
}
}
if (Me>360)
{
while (Me <360)
{
Me = Me - 360;
}
}
if (w<0)
{
while (w >0)
{
w = w + 360;
}
}
if (w>360)
{
while (w <360)
{
w = w - 360;
}
}
if (Me<0)
{
while (Me >0)
{
Me = Me + 360;
}
}
if (Me>360)
{
while (Me <360)
{
Me = Me - 360;
}
}
if (N<0)
{
while (N >0)
{
N = N + 360;
}
}
if (N>360)
{
while (N <360)
{
N = N - 360;
}
}
if (ii<0)
{
while (ii >0)
{
ii = ii + 360;
}
}
if (ii>360)
{
while (ii <360)
{
ii = ii - 360;
}
}
ii = ii * rad; ii = ii * rad;
Merad = Me * rad; Merad = Me * rad;
N = N * rad; N = N * rad;
E4 = 0; E4 = 0;
E0 = Me + e*(deg) * Math.sin(Merad) * ( 1.0 + e * Math.cos(Merad) ); E0 = Me + e*(deg) * Math.sin(Merad) * ( 1.0 + e * Math.cos(Merad) );
while (E4 == 0) while (E4 == 0)
{ {
E2 = E0 * rad; E2 = E0 * rad;
E1 = E0 - (E2 - (e * Math.sin(E2)) - (Me* rad)) / ( 1 - e * Math.cos(E2)); E1 = E0 - (E2 - (e * Math.sin(E2)) - (Me* rad)) / ( 1 - e * Math.cos(E2));
if (Math.abs(E1-E0)< 0.000001) if (Math.abs(E1-E0)< 0.0001)
{ {
E4 = 1; E4 = 1;
} }
else else
{ {
E0 = E1; E0 = E1;
} }
} }
E0 = E1 * rad // Might as well use E0 as Radians E0 = E1 * rad // Might as well use E0 as Radians
skipping to change at line 80882 skipping to change at line 80768
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
txt1 = LabelMgr.labelScreen(fvp[i].toFixed(3)+"%", 195*x, 555*y, false, 20, "#AAFFAA"); txt1 = LabelMgr.labelScreen(fvp[i].toFixed(3)+"%", 195*x, 555*y, false, 20, "#AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Illumination:", 10*x, 555*y, false, 20, "#AAFF AA"); txt1 = LabelMgr.labelScreen("Illumination:", 10*x, 555*y, false, 20, "#AAFF AA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Total Magnitude:", 10*x, 580*y, false, 20, "#A txt1 = LabelMgr.labelScreen("Earth Magnitude:", 10*x, 580*y, false, 20, "#A
AFFAA"); AFFAA");
LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(tmag.toFixed(3), 200*x, 580*y, false, 20, "#AAF
FAA");
LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Earth Magnitude:", 10*x, 610*y, false, 20, "#A
AFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(emag[i].toFixed(3), 200*x, 610*y, false, 20, "# AAFFAA"); txt1 = LabelMgr.labelScreen(emag[i].toFixed(3), 200*x, 580*y, false, 20, "# AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Moon Magnitude:", 10*x, 640*y, false, 20, "#AA FFAA"); txt1 = LabelMgr.labelScreen("Moon Magnitude:", 10*x, 610*y, false, 20, "#AA FFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
if (mfv[i] < 0) if (mfv[i] < 0)
{ {
txt1 = LabelMgr.labelScreen(mfv[i].toFixed(3), 200*x, 640*y, false, 20, "#A AFFAA"); txt1 = LabelMgr.labelScreen(mfv[i].toFixed(3), 200*x, 610*y, false, 20, "#A AFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
else else
{ {
txt1 = LabelMgr.labelScreen(mfv[i].toFixed(3), 205*x, 640*y, false, 20, "#A AFFAA"); txt1 = LabelMgr.labelScreen(mfv[i].toFixed(3), 205*x, 610*y, false, 20, "#A AFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
txt1 = LabelMgr.labelScreen("Moon Elongation:", 10*x, 665*y, false, 20, "#A AFFAA"); txt1 = LabelMgr.labelScreen("Moon Elongation:", 10*x, 640*y, false, 20, "#A AFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(im[i].toFixed(3) + degstring, 205*x, 665*y, fal se, 20, "#AAFFAA"); txt1 = LabelMgr.labelScreen(im[i].toFixed(3) + degstring, 205*x, 640*y, fal se, 20, "#AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
if (il[i] > 0) if (il[i] > 0)
{ {
txt1 = LabelMgr.labelScreen("Viewing Longitude: " + il[i] + "E", 10*x, 695*y, false, 20, "#FF0000"); txt1 = LabelMgr.labelScreen("Viewing Longitude: " + il[i] + "E", 10*x, 665*y, false, 20, "#FF0000");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
else else
{ {
txt1 = LabelMgr.labelScreen("Viewing Longitude: " + Math.abs(il[i])+"W" , 10*x, 695*y, false, 20, "#FF0000"); txt1 = LabelMgr.labelScreen("Viewing Longitude: " + Math.abs(il[i])+"W" , 10*x, 665*y, false, 20, "#FF0000");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
} }
txt1 = LabelMgr.labelScreen("Cycle: "+ cycle[i], 10*x, 505*y, false, 20, "# AAFFAA"); txt1 = LabelMgr.labelScreen("Cycle: "+ cycle[i], 10*x, 505*y, false, 20, "# AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
flo = Math.floor(ij[i]); flo = Math.floor(ij[i]);
// Yes an Array would be nice but for some !@^# reason it won't work so I h ave to do it the hard //way // Yes an Array would be nice but for some !@^# reason it won't work so I h ave to do it the hard //way
skipping to change at line 81093 skipping to change at line 80973
txt1 = LabelMgr.labelScreen(ename, 450*x, 0*y, false, 20, "#AAFFAA"); txt1 = LabelMgr.labelScreen(ename, 450*x, 0*y, false, 20, "#AAFFAA");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(ename, 10*x, 475*y, false, 20, "#00FF71"); txt1 = LabelMgr.labelScreen(ename, 10*x, 475*y, false, 20, "#00FF71");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen("Julian Date:", 700*x, 635*y, false, 15, "#00FF 71"); txt1 = LabelMgr.labelScreen("Julian Date:", 700*x, 635*y, false, 15, "#00FF 71");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
txt1 = LabelMgr.labelScreen(core.getJDay().toFixed(3), 775*x, 635*y, false, 15, "#00FF71"); txt1 = LabelMgr.labelScreen(core.getJDay().toFixed(3), 790*x, 635*y, false, 15, "#00FF71");
LabelMgr.setLabelShow(txt1, true); LabelMgr.setLabelShow(txt1, true);
// Wait for Keypress // Wait for Keypress
d = Math.floor(core.getJDay()); d = Math.floor(core.getJDay());
r = d; r = d;
pak = 0 pak = 0
if (ss ==1) if (ss ==1)
 End of changes. 19 change blocks. 
139 lines changed or deleted 17 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/