glooey.drawing.color.Color¶
- class glooey.drawing.color.Color(red, green, blue, alpha=255)[source]¶
Bases:
object
Public Methods:
from_anything
(color)from_str
(str)from_hex
(hex)from_ints
(red, green, blue[, alpha])from_int_tuple
(rgba)from_floats
(red, green, blue[, alpha])from_float_tuple
(rgba)__init__
(red, green, blue[, alpha])__iter__
()__str__
()Return str(self).
__repr__
()Return repr(self).
__add__
(other)__sub__
(other)__mul__
(scalar)__truediv__
(scalar)get_red
()get_blue
()get_rgb
()get_rgba
()set_red
(red)set_green
(green)set_blue
(blue)set_alpha
(alpha)set_rgb
(red, green, blue)set_rgba
(red, green, blue, alpha)set_tuple
(red, green, blue, alpha)set_float
(red, green, blue, alpha)lighten
(extent)darken
(extent)disappear
(extent)interpolate
(target, extent)
- __dict__ = mappingproxy({'__module__': 'glooey.drawing.color', 'from_anything': <staticmethod object>, 'from_str': <staticmethod object>, 'from_hex': <staticmethod object>, 'from_ints': <staticmethod object>, 'from_int_tuple': <staticmethod object>, 'from_floats': <staticmethod object>, 'from_float_tuple': <staticmethod object>, '__init__': <function Color.__init__>, '__iter__': <function Color.__iter__>, '__str__': <function Color.__str__>, '__repr__': <function Color.__repr__>, '__add__': <function Color.__add__>, '__sub__': <function Color.__sub__>, '__mul__': <function Color.__mul__>, '__truediv__': <function Color.__truediv__>, 'get_red': <function Color.get_red>, 'get_green': <function Color.get_green>, 'get_blue': <function Color.get_blue>, 'get_alpha': <function Color.get_alpha>, 'get_rgb': <function Color.get_rgb>, 'get_rgba': <function Color.get_rgba>, 'get_tuple': <function Color.get_tuple>, 'get_float': <function Color.get_float>, 'set_red': <function Color.set_red>, 'set_green': <function Color.set_green>, 'set_blue': <function Color.set_blue>, 'set_alpha': <function Color.set_alpha>, 'set_rgb': <function Color.set_rgb>, 'set_rgba': <function Color.set_rgba>, 'set_tuple': <function Color.set_tuple>, 'set_float': <function Color.set_float>, 'lighten': <function Color.lighten>, 'darken': <function Color.darken>, 'disappear': <function Color.disappear>, 'interpolate': <function Color.interpolate>, '__dict__': <attribute '__dict__' of 'Color' objects>, '__weakref__': <attribute '__weakref__' of 'Color' objects>, '__doc__': None, 'red': <property object>, 'green': <property object>, 'blue': <property object>, 'alpha': <property object>, 'rgb': <property object>, 'rgba': <property object>, 'tuple': <property object>, 'float': <property object>, '__annotations__': {}})¶
- __module__ = 'glooey.drawing.color'¶
- __weakref__¶
list of weak references to the object (if defined)
- property alpha¶
- property blue¶
- property float¶
- property green¶
- property red¶
- property rgb¶
- property rgba¶
- property tuple¶