?

Generation

generate functionMon, 13 Mar 2023

show window

void show(int x, int y, int width, int height, char color) { for(int i = x; i < x + width; ++i) { for(int j = y; j < y + height; ++j) { screen.plot(i, j, color); } } } show(100, 30, 3, 4, 'r'); // show a red window in (100, 30) with width 3 and height 4

Questions about programming?Chat with your personal AI assistant