Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def set_fg(self, c):
assert isinstance(c, Rgba)
self.fg = c
return self
def black(a=1.0):
return Rgba(0, 0, 0, a)
def set_fg(self, c):
assert isinstance(c, Rgba)
self.fg = c
return self
def rgb(r, g, b, a=1.0):
return Rgba(r, g, b, a)
def white(a=1.0):
return Rgba(1, 1, 1, a)
def set_bg(self, c):
assert isinstance(c, Rgba)
self.bg = c
return self