MCPcopy Create free account
hub / github.com/charmbracelet/bubbletea / set

Method set

examples/cellbuffer/main.go:88–94  ·  view source on GitHub ↗
(x, y int)

Source from the content-addressed store, hash-verified

86}
87
88func (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
96func (c *cellbuffer) wipe() {
97 for i := range c.cells {

Callers 1

drawEllipseFunction · 0.80

Calls 2

widthMethod · 0.95
heightMethod · 0.95

Tested by

no test coverage detected