#include <tscope.h>
int main()
{
ts_scrsize(SIZE1);
ts_coordinates(STANDARD);
ts_printf(20, 20, "with the standard coordinate system");
ts_printf(20, 40, "(0,0) will be the left top of the screen");
ts_circle(0, 0, 20);
ts_printf(20, 60,
"all screen positions will have positive coordinates");
ts_printf_centre(150, 150, "(+,+)");
ts_button(SXMAX - 20, SYMAX - 20);
ts_clrscr();
ts_printf(20, 20, "the macros SXMAX and SYMAX contain the");
ts_printf(20, 40, "horizontal and vertical sizes of the screen");
ts_circle(SXMAX, SYMAX, 50);
ts_button(SXMAX - 20, SYMAX - 20);
ts_printf(20, 80,
"these values can be used to compute the coordinates of your stimuli");
ts_line(SXMAX / 2, SYMAX / 4, SXMAX / 2, 3 * SYMAX / 4);
ts_line(SXMAX / 4, SYMAX / 2, 3 * SXMAX / 4, SYMAX / 2);
ts_circle(SXMAX / 2, SYMAX / 2, 20);
ts_button(SXMAX - 20, SYMAX - 20);
ts_printf(20, 120,
"similar things can be done with the functions ax and ay");
ts_line(ax(.25), ay(.25), ax(.75), ay(.75));
ts_line(ax(.25), ay(.75), ax(.75), ay(.25));
ts_button(SXMAX - 20, SYMAX - 20);
return 0;
}
END_OF_MAIN();