6 Mar
2023
6 Mar
'23
6:59 a.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)); } }