15 Oct
2022
15 Oct
'22
3:28 p.m.
void triangle(grid_t grid, float left, float bottom, float width, float height) { // - right triangle // - aligned to axes // - lower-valued coordinates are orthogonal sides for (float y = bottom; y != height; y += 1) { memset(grid[y][left], 1, int(width)); } }