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

Method line

pager/pagerctl_mock.py:271–272  ·  view source on GitHub ↗
(self, x0, y0, x1, y1, color)

Source from the content-addressed store, hash-verified

269 pygame.draw.line(self._surface, _rgb565_to_rgb888(color), (x, y), (x, y + h - 1))
270
271 def line(self, x0, y0, x1, y1, color):
272 pygame.draw.line(self._surface, _rgb565_to_rgb888(color), (x0, y0), (x1, y1))
273
274 def fill_circle(self, cx, cy, r, color):
275 pygame.draw.circle(self._surface, _rgb565_to_rgb888(color), (cx, cy), r)

Callers 2

hlineMethod · 0.45
vlineMethod · 0.45

Calls 1

_rgb565_to_rgb888Function · 0.85

Tested by

no test coverage detected