// cc -Wall -o demo demo.c vectrex.o -I. -lSDL2

#include <vectrex.h>

int main(void) {
  
  for (;;) {
    Wait_Recal();
    Reset0Ref();
    set_scale(127);   // scale 127 looks OK, scale 255 is wrongly positioned.
    Intensity_a(0x7f);
    Moveto_d(63,-63);     // top-left
    Draw_Line_dab(0, 126);  // top-left to top-right
    Draw_Line_dab(-126, 0); // top-right to bottom-right
    Draw_Line_dab(0, -126); // bottom-right to bottom-left
    Draw_Line_dab(126, 0);  // bottom-left to top-left
  }

  return 0;
}
