MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / rect

Method rect

pager/pagerctl_mock.py:262–263  ·  view source on GitHub ↗
(self, x, y, w, h, color)

Source from the content-addressed store, hash-verified

260 pygame.draw.rect(self._surface, _rgb565_to_rgb888(color), (x, y, w, h))
261
262 def rect(self, x, y, w, h, color):
263 pygame.draw.rect(self._surface, _rgb565_to_rgb888(color), (x, y, w, h), 1)
264
265 def hline(self, x, y, w, color):
266 pygame.draw.line(self._surface, _rgb565_to_rgb888(color), (x, y), (x + w - 1, y))

Callers 1

fill_rectMethod · 0.45

Calls 1

_rgb565_to_rgb888Function · 0.85

Tested by

no test coverage detected