Tscope5
bitmaps5.c

prepare stimuli using memory bitmaps

#include <tscope5.h>
int main()
{
double w, h;
TS5_BITMAP *map1 = ts5_alloc_bitmap(w, h);
TS5_BITMAP *map2 = ts5_alloc_bitmap(w, h);
TS5_BITMAP *map3 = ts5_alloc_bitmap(w, h);
double i;
for (i=0; i<400; i+=3) {
ts5_draw_circle(0.0, 0.0, i);
ts5_draw_circle(0.0, 0.0, i+1.0);
ts5_draw_circle(0.0, 0.0, i+2.0);
}
for (i=0; i<100; i++) {
ts5_draw_bitmap(map1, 0.0, 0.0);
ts5_wait(0.02);
ts5_draw_bitmap(map2, 0.0, 0.0);
ts5_wait(0.02);
ts5_draw_bitmap(map3, 0.0, 0.0);
ts5_wait(0.02);
}
ts5_draw_mouse_button(w/2.0-50.0, -h/2.0+50.0);
return 0;
}