Sets background color at coordinates.
void setBackground(int x, int y, int bg) { if (x >= 0 && x < width && y >= 0 && y < height) { attributes[(y * width + x) * 3 + 1] = bg; } }