1 | draw_set_alpha(draw_alpha) |
2 | draw_set_color(c_white) |
3 | draw_sprite_ext(spr_crayon_id, 0, id_xx, id_yy, 1, 1, 0, c_white, draw_alpha) |
4 | for (var j = 0; j < ds_grid_height(drawing_grid); j++) |
5 | { |
6 | for (var i = 0; i < ds_grid_width(drawing_grid); i++) |
7 | { |
8 | var grid_current = ds_grid_get(drawing_grid, i, j) |
9 | if (grid_current != 0) |
10 | draw_sprite_ext(spr_crayon_pixel, 0, (id_xx + i), (id_yy + j), 1, 1, 0, pencil_color[(grid_current - 1)], draw_alpha) |
11 | } |
12 | } |
13 | draw_set_alpha(1) |