1 | if (grey < 10) |
2 | grad_direction = true |
3 | else if (grey > 250) |
4 | grad_direction = false |
5 | if grad_direction |
6 | grey += 2 |
7 | else |
8 | grey -= 3 |
9 | color = make_color_rgb(grey, grey, grey) |
10 | draw_set_color(color) |
11 | draw_rectangle(x, y, (room_width / 2 + room_width / index), (room_height / 2 + room_height / index), false) |