Views contain a real-valued animation coordinate system. Typically,
views begin with
and
ranging from 0.0 to 1.0, with the origin at the lower left corner and increasing
from left-to-right and bottom-to-top. If the window isn't square initially,
one of the dimensions will be skewed, and for instance, circles will look
like ellipses. To get a non-square window to have a similar x-y aspect
ratio, use the routine SetCoord.
The View base class is defined as follows:
class View {
protected:
int time;
public:
View();
~View();
void SetDebug(int);
void SetCoord(double, double, double, double);
void SetBgColor(const char *);
int Create(const char *title=''Polka", RefreshMode rm=CoordStretch,
int width=0, int height=0);
int Animate(int, int);
int CheckInput();
};