tile_renderer.colour.Colour

class tile_renderer.colour.Colour(h: float, s: float, l: float)

Bases: object

__init__(h: float, s: float, l: float) None

Methods

__init__(h, s, l)

brightened([by])

darkened([by])

from_hex(h)

from_rgb(r, g, b)

Attributes

b

g

r

rgb

h

s

l

property b
brightened(by: float = 30.0) Self
darkened(by: float = 30.0) Self
classmethod from_hex(h: int | str)
classmethod from_rgb(r: float, g: float, b: float)
property g
h: float
l: float
property r
property rgb: tuple[float, float, float]
s: float