#include "franca.h"
#include "math.h"
void mainprog()
{
float t,angle,radius=100;
float x,y;
Circle sun,earth;
sun.origin(320,240);
sun.resize(60);
sun.color(6);
earth.color(3);
Clock timer;
earth.place(radius,0);
sun.show();
do
{
t=timer.time();
angle=t*360/36.525; // 1 day=1/10 secs
angle=angle*2*3.14159/360;// convert to radians
x=radius*cos(angle);
y=radius*sin(angle);
earth.erase();
earth.place(x,y);
earth.show();
timer.wait(0.03);
} while(t<=36.25);
}