MCPcopy Create free account
hub / github.com/antirez/freakwan / render_text

Method render_text

scroller.py:78–84  ·  view source on GitHub ↗
(self,text,x,y,color)

Source from the content-addressed store, hash-verified

76 self.rows = int(self.yres/self.font_height)
77
78 def render_text(self,text,x,y,color):
79 if self.font == self.Font8x8:
80 self.display.text(text, x, y, color)
81 else:
82 for c in text:
83 self.render_4x6_char(c, x, y, color)
84 x += self.font_width
85
86 def render_4x6_char(self,c,px,py,color):
87 idx = ord(c)

Callers 1

draw_textMethod · 0.95

Calls 2

render_4x6_charMethod · 0.95
textMethod · 0.80

Tested by

no test coverage detected