#include "DarkGDK.h"
void DarkGDK(void)
{
//Supposed to be red
dbInk(RGB(255, 0, 0), RGB(0, 0, 0));
dbBox(100, 100, 200, 200);
dbInk(RGB(255, 0, 0), RGB(255, 255, 255));
dbBox(250, 100, 350, 200);
dbInk(RGB(0, 0, 255), RGB(0, 0, 0));
dbBox(100, 250, 200, 350);
dbInk(RGB(0, 0, 255), RGB(255, 255, 255));
dbBox(250, 250, 350, 350);
dbWaitKey();
dbSyncOn();
dbSyncRate(60);
dbDisableEscapeKey();
while (LoopGDK())
{
dbInk(RGB(255, 0, 0), RGB(0, 0, 0));
dbBox(100, 100, 200, 200);
dbInk(RGB(255, 0, 0), RGB(255, 255, 255));
dbBox(250, 100, 350, 200);
dbInk(RGB(0, 0, 255), RGB(0, 0, 0));
dbBox(100, 250, 200, 350);
dbInk(RGB(0, 0, 255), RGB(255, 255, 255));
dbBox(250, 250, 350, 350);
if (dbEscapeKey())
break;
dbSync();
}
}
Here is an example and here is a screenshot. I don't really know how else to show and explain it.
I did 2 for each color because i didn't know if the backcolor would effect anything. So i did it to cover my basis.