MCPcopy
hub / github.com/will8211/unimatrix / set_bg_color

Method set_bg_color

unimatrix.py:552–559  ·  view source on GitHub ↗

Set background color

(self, name)

Source from the content-addressed store, hash-verified

550 self.stat.update(name, self.delay)
551
552 def set_bg_color(self, name):
553 """
554 Set background color
555 """
556 self.bg = colors_str[name.lower()]
557 curses.init_pair(1, self.fg, self.bg)
558 curses.init_pair(2, curses.COLOR_WHITE, self.bg)
559 self.stat.update('BG: %s' % name, self.delay)
560
561 def show_speed(self):
562 """

Callers 1

getMethod · 0.95

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected