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

Method draw_number

pager/test_pager_code.py:249–251  ·  view source on GitHub ↗

Draw a number. Returns width.

(self, x, y, num, color, size=1)

Source from the content-addressed store, hash-verified

247 return len(text) * 6 * size
248
249 def draw_number(self, x, y, num, color, size=1):
250 """Draw a number. Returns width."""
251 return len(str(num)) * 6 * size
252
253 # ========== TTF TEXT ==========
254 def draw_ttf(self, x, y, text, color, font_path, font_size):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected