glooey.drawing.color.Color

class glooey.drawing.color.Color(red, green, blue, alpha=255)[source]

Bases: object

Public Properties

red

green

blue

alpha

rgb

rgba

tuple

float

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_green()

get_blue()

get_alpha()

get_rgb()

get_rgba()

get_tuple()

get_float()

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)


__add__(other)[source]
__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__': {}})
__init__(red, green, blue, alpha=255)[source]
__iter__()[source]
__module__ = 'glooey.drawing.color'
__mul__(scalar)[source]
__repr__()[source]

Return repr(self).

__str__()[source]

Return str(self).

__sub__(other)[source]
__truediv__(scalar)[source]
__weakref__

list of weak references to the object (if defined)

property alpha
property blue
darken(extent)[source]
disappear(extent)[source]
property float
static from_anything(color)[source]
static from_float_tuple(rgba)[source]
static from_floats(red, green, blue, alpha=1.0)[source]
static from_hex(hex)[source]
static from_int_tuple(rgba)[source]
static from_ints(red, green, blue, alpha=255)[source]
static from_str(str)[source]
get_alpha()[source]
get_blue()[source]
get_float()[source]
get_green()[source]
get_red()[source]
get_rgb()[source]
get_rgba()[source]
get_tuple()[source]
property green
interpolate(target, extent)[source]
lighten(extent)[source]
property red
property rgb
property rgba
set_alpha(alpha)[source]
set_blue(blue)[source]
set_float(red, green, blue, alpha)[source]
set_green(green)[source]
set_red(red)[source]
set_rgb(red, green, blue)[source]
set_rgba(red, green, blue, alpha)[source]
set_tuple(red, green, blue, alpha)[source]
property tuple