(x, y int)
| 86 | } |
| 87 | |
| 88 | func (c cellbuffer) set(x, y int) { |
| 89 | i := y*c.stride + x |
| 90 | if i > len(c.cells)-1 || x < 0 || y < 0 || x >= c.width() || y >= c.height() { |
| 91 | return |
| 92 | } |
| 93 | c.cells[i] = asterisk |
| 94 | } |
| 95 | |
| 96 | func (c *cellbuffer) wipe() { |
| 97 | for i := range c.cells { |
no test coverage detected