Below is my code
void specificity::showText(vector<name_ID> &sacrifice, int die)
{
cimg::wait(100);
unsigned int R = 50 + rand() % 255;
unsigned int G = 100 + rand() % 255;
unsigned int B = 50 + rand() % 255;
unsigned char purple[] = { R,G,B };
img.fill(0).draw_text(width / 2, height / 2, sacrifice[die].first.c_str(), purple);
img.display();
}
I have to press the keyboard or mouse to reactivate the img.display()
How could I make it reactivate automatically?
Besides, how could I change the size of text?
Thanks a lot