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));
}
}
Re: [spam][crazy][personal][wrong] parts of triangle program
Undescribed Horrific Abuse, One Victim & Survivor of Many Sun, 05 Mar 2023 22:59:47 -0800
