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));
  }
}

Reply via email to