How to use the tcod.color.Color function in tcod

To help you get started, we’ve selected a few tcod examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github libtcod / python-tcod / tcod / constants.py View on Github external
light_green = Color(63, 255, 63)
light_grey = Color(159, 159, 159)
light_han = Color(111, 63, 255)
light_lime = Color(207, 255, 63)
light_magenta = Color(255, 63, 207)
light_orange = Color(255, 159, 63)
light_pink = Color(255, 63, 159)
light_purple = Color(207, 63, 255)
light_red = Color(255, 63, 63)
light_sea = Color(63, 255, 159)
light_sepia = Color(158, 134, 100)
light_sky = Color(63, 207, 255)
light_turquoise = Color(63, 255, 207)
light_violet = Color(159, 63, 255)
light_yellow = Color(255, 255, 63)
lighter_amber = Color(255, 223, 127)
lighter_azure = Color(127, 191, 255)
lighter_blue = Color(127, 127, 255)
lighter_chartreuse = Color(191, 255, 127)
lighter_crimson = Color(255, 127, 159)
lighter_cyan = Color(127, 255, 255)
lighter_flame = Color(255, 159, 127)
lighter_fuchsia = Color(255, 127, 255)
lighter_gray = Color(191, 191, 191)
lighter_green = Color(127, 255, 127)
lighter_grey = Color(191, 191, 191)
lighter_han = Color(159, 127, 255)
lighter_lime = Color(223, 255, 127)
lighter_magenta = Color(255, 127, 223)
lighter_orange = Color(255, 191, 127)
lighter_pink = Color(255, 127, 191)
lighter_purple = Color(223, 127, 255)
github libtcod / python-tcod / build_libtcod.py View on Github external
f.write("%s = %r\n" % (name, value))
                all_names.append(name)
            elif name[:6] == "TCODK_":  # key name
                f.write("KEY_%s = %r\n" % (name[6:], value))
                all_names.append("KEY_%s" % name[6:])

        f.write("\n# --- colors ---\n")
        for name in dir(lib):
            if name[:5] != "TCOD_":
                continue
            value = getattr(lib, name)
            if not isinstance(value, ffi.CData):
                continue
            if ffi.typeof(value) != ffi.typeof("TCOD_color_t"):
                continue
            color = tcod.color.Color._new_from_cdata(value)
            f.write("%s = %r\n" % (name[5:], color))
            all_names.append(name[5:])

        all_names = ",\n    ".join('"%s"' % name for name in all_names)
        f.write("\n__all__ = [\n    %s,\n]\n" % (all_names,))

    with open("tcod/event_constants.py", "w") as f:
        all_names = []
        f.write(EVENT_CONSTANT_MODULE_HEADER)
        f.write("# --- SDL scancodes ---\n")
        f.write(
            "%s\n_REVERSE_SCANCODE_TABLE = %s\n"
            % parse_sdl_attrs("SDL_SCANCODE", all_names)
        )

        f.write("\n# --- SDL keyboard symbols ---\n")
github libtcod / python-tcod / tcod / constants.py View on Github external
desaturated_blue = Color(63, 63, 127)
desaturated_chartreuse = Color(95, 127, 63)
desaturated_crimson = Color(127, 63, 79)
desaturated_cyan = Color(63, 127, 127)
desaturated_flame = Color(127, 79, 63)
desaturated_fuchsia = Color(127, 63, 127)
desaturated_green = Color(63, 127, 63)
desaturated_han = Color(79, 63, 127)
desaturated_lime = Color(111, 127, 63)
desaturated_magenta = Color(127, 63, 111)
desaturated_orange = Color(127, 95, 63)
desaturated_pink = Color(127, 63, 95)
desaturated_purple = Color(111, 63, 127)
desaturated_red = Color(127, 63, 63)
desaturated_sea = Color(63, 127, 95)
desaturated_sky = Color(63, 111, 127)
desaturated_turquoise = Color(63, 127, 111)
desaturated_violet = Color(95, 63, 127)
desaturated_yellow = Color(127, 127, 63)
flame = Color(255, 63, 0)
fuchsia = Color(255, 0, 255)
gold = Color(229, 191, 0)
gray = Color(127, 127, 127)
green = Color(0, 255, 0)
grey = Color(127, 127, 127)
han = Color(63, 0, 255)
light_amber = Color(255, 207, 63)
light_azure = Color(63, 159, 255)
light_blue = Color(63, 63, 255)
light_chartreuse = Color(159, 255, 63)
light_crimson = Color(255, 63, 111)
light_cyan = Color(63, 255, 255)
github libtcod / python-tcod / tcod / constants.py View on Github external
light_azure = Color(63, 159, 255)
light_blue = Color(63, 63, 255)
light_chartreuse = Color(159, 255, 63)
light_crimson = Color(255, 63, 111)
light_cyan = Color(63, 255, 255)
light_flame = Color(255, 111, 63)
light_fuchsia = Color(255, 63, 255)
light_gray = Color(159, 159, 159)
light_green = Color(63, 255, 63)
light_grey = Color(159, 159, 159)
light_han = Color(111, 63, 255)
light_lime = Color(207, 255, 63)
light_magenta = Color(255, 63, 207)
light_orange = Color(255, 159, 63)
light_pink = Color(255, 63, 159)
light_purple = Color(207, 63, 255)
light_red = Color(255, 63, 63)
light_sea = Color(63, 255, 159)
light_sepia = Color(158, 134, 100)
light_sky = Color(63, 207, 255)
light_turquoise = Color(63, 255, 207)
light_violet = Color(159, 63, 255)
light_yellow = Color(255, 255, 63)
lighter_amber = Color(255, 223, 127)
lighter_azure = Color(127, 191, 255)
lighter_blue = Color(127, 127, 255)
lighter_chartreuse = Color(191, 255, 127)
lighter_crimson = Color(255, 127, 159)
lighter_cyan = Color(127, 255, 255)
lighter_flame = Color(255, 159, 127)
lighter_fuchsia = Color(255, 127, 255)
lighter_gray = Color(191, 191, 191)
github libtcod / python-tcod / tcod / constants.py View on Github external
desaturated_orange = Color(127, 95, 63)
desaturated_pink = Color(127, 63, 95)
desaturated_purple = Color(111, 63, 127)
desaturated_red = Color(127, 63, 63)
desaturated_sea = Color(63, 127, 95)
desaturated_sky = Color(63, 111, 127)
desaturated_turquoise = Color(63, 127, 111)
desaturated_violet = Color(95, 63, 127)
desaturated_yellow = Color(127, 127, 63)
flame = Color(255, 63, 0)
fuchsia = Color(255, 0, 255)
gold = Color(229, 191, 0)
gray = Color(127, 127, 127)
green = Color(0, 255, 0)
grey = Color(127, 127, 127)
han = Color(63, 0, 255)
light_amber = Color(255, 207, 63)
light_azure = Color(63, 159, 255)
light_blue = Color(63, 63, 255)
light_chartreuse = Color(159, 255, 63)
light_crimson = Color(255, 63, 111)
light_cyan = Color(63, 255, 255)
light_flame = Color(255, 111, 63)
light_fuchsia = Color(255, 63, 255)
light_gray = Color(159, 159, 159)
light_green = Color(63, 255, 63)
light_grey = Color(159, 159, 159)
light_han = Color(111, 63, 255)
light_lime = Color(207, 255, 63)
light_magenta = Color(255, 63, 207)
light_orange = Color(255, 159, 63)
light_pink = Color(255, 63, 159)
github libtcod / python-tcod / tcod / constants.py View on Github external
darkest_sea = Color(0, 63, 31)
darkest_sepia = Color(31, 24, 15)
darkest_sky = Color(0, 47, 63)
darkest_turquoise = Color(0, 63, 47)
darkest_violet = Color(31, 0, 63)
darkest_yellow = Color(63, 63, 0)
desaturated_amber = Color(127, 111, 63)
desaturated_azure = Color(63, 95, 127)
desaturated_blue = Color(63, 63, 127)
desaturated_chartreuse = Color(95, 127, 63)
desaturated_crimson = Color(127, 63, 79)
desaturated_cyan = Color(63, 127, 127)
desaturated_flame = Color(127, 79, 63)
desaturated_fuchsia = Color(127, 63, 127)
desaturated_green = Color(63, 127, 63)
desaturated_han = Color(79, 63, 127)
desaturated_lime = Color(111, 127, 63)
desaturated_magenta = Color(127, 63, 111)
desaturated_orange = Color(127, 95, 63)
desaturated_pink = Color(127, 63, 95)
desaturated_purple = Color(111, 63, 127)
desaturated_red = Color(127, 63, 63)
desaturated_sea = Color(63, 127, 95)
desaturated_sky = Color(63, 111, 127)
desaturated_turquoise = Color(63, 127, 111)
desaturated_violet = Color(95, 63, 127)
desaturated_yellow = Color(127, 127, 63)
flame = Color(255, 63, 0)
fuchsia = Color(255, 0, 255)
gold = Color(229, 191, 0)
gray = Color(127, 127, 127)
green = Color(0, 255, 0)
github libtcod / python-tcod / tcod / constants.py View on Github external
darker_crimson = Color(127, 0, 31)
darker_cyan = Color(0, 127, 127)
darker_flame = Color(127, 31, 0)
darker_fuchsia = Color(127, 0, 127)
darker_gray = Color(63, 63, 63)
darker_green = Color(0, 127, 0)
darker_grey = Color(63, 63, 63)
darker_han = Color(31, 0, 127)
darker_lime = Color(95, 127, 0)
darker_magenta = Color(127, 0, 95)
darker_orange = Color(127, 63, 0)
darker_pink = Color(127, 0, 63)
darker_purple = Color(95, 0, 127)
darker_red = Color(127, 0, 0)
darker_sea = Color(0, 127, 63)
darker_sepia = Color(63, 50, 31)
darker_sky = Color(0, 95, 127)
darker_turquoise = Color(0, 127, 95)
darker_violet = Color(63, 0, 127)
darker_yellow = Color(127, 127, 0)
darkest_amber = Color(63, 47, 0)
darkest_azure = Color(0, 31, 63)
darkest_blue = Color(0, 0, 63)
darkest_chartreuse = Color(31, 63, 0)
darkest_crimson = Color(63, 0, 15)
darkest_cyan = Color(0, 63, 63)
darkest_flame = Color(63, 15, 0)
darkest_fuchsia = Color(63, 0, 63)
darkest_gray = Color(31, 31, 31)
darkest_green = Color(0, 63, 0)
darkest_grey = Color(31, 31, 31)
darkest_han = Color(15, 0, 63)
github libtcod / python-tcod / tcod / constants.py View on Github external
desaturated_violet = Color(95, 63, 127)
desaturated_yellow = Color(127, 127, 63)
flame = Color(255, 63, 0)
fuchsia = Color(255, 0, 255)
gold = Color(229, 191, 0)
gray = Color(127, 127, 127)
green = Color(0, 255, 0)
grey = Color(127, 127, 127)
han = Color(63, 0, 255)
light_amber = Color(255, 207, 63)
light_azure = Color(63, 159, 255)
light_blue = Color(63, 63, 255)
light_chartreuse = Color(159, 255, 63)
light_crimson = Color(255, 63, 111)
light_cyan = Color(63, 255, 255)
light_flame = Color(255, 111, 63)
light_fuchsia = Color(255, 63, 255)
light_gray = Color(159, 159, 159)
light_green = Color(63, 255, 63)
light_grey = Color(159, 159, 159)
light_han = Color(111, 63, 255)
light_lime = Color(207, 255, 63)
light_magenta = Color(255, 63, 207)
light_orange = Color(255, 159, 63)
light_pink = Color(255, 63, 159)
light_purple = Color(207, 63, 255)
light_red = Color(255, 63, 63)
light_sea = Color(63, 255, 159)
light_sepia = Color(158, 134, 100)
light_sky = Color(63, 207, 255)
light_turquoise = Color(63, 255, 207)
light_violet = Color(159, 63, 255)
github libtcod / python-tcod / tcod / constants.py View on Github external
crimson = Color(255, 0, 63)
cyan = Color(0, 255, 255)
dark_amber = Color(191, 143, 0)
dark_azure = Color(0, 95, 191)
dark_blue = Color(0, 0, 191)
dark_chartreuse = Color(95, 191, 0)
dark_crimson = Color(191, 0, 47)
dark_cyan = Color(0, 191, 191)
dark_flame = Color(191, 47, 0)
dark_fuchsia = Color(191, 0, 191)
dark_gray = Color(95, 95, 95)
dark_green = Color(0, 191, 0)
dark_grey = Color(95, 95, 95)
dark_han = Color(47, 0, 191)
dark_lime = Color(143, 191, 0)
dark_magenta = Color(191, 0, 143)
dark_orange = Color(191, 95, 0)
dark_pink = Color(191, 0, 95)
dark_purple = Color(143, 0, 191)
dark_red = Color(191, 0, 0)
dark_sea = Color(0, 191, 95)
dark_sepia = Color(94, 75, 47)
dark_sky = Color(0, 143, 191)
dark_turquoise = Color(0, 191, 143)
dark_violet = Color(95, 0, 191)
dark_yellow = Color(191, 191, 0)
darker_amber = Color(127, 95, 0)
darker_azure = Color(0, 63, 127)
darker_blue = Color(0, 0, 127)
darker_chartreuse = Color(63, 127, 0)
darker_crimson = Color(127, 0, 31)
darker_cyan = Color(0, 127, 127)
github libtcod / python-tcod / tcod / constants.py View on Github external
desaturated_magenta = Color(127, 63, 111)
desaturated_orange = Color(127, 95, 63)
desaturated_pink = Color(127, 63, 95)
desaturated_purple = Color(111, 63, 127)
desaturated_red = Color(127, 63, 63)
desaturated_sea = Color(63, 127, 95)
desaturated_sky = Color(63, 111, 127)
desaturated_turquoise = Color(63, 127, 111)
desaturated_violet = Color(95, 63, 127)
desaturated_yellow = Color(127, 127, 63)
flame = Color(255, 63, 0)
fuchsia = Color(255, 0, 255)
gold = Color(229, 191, 0)
gray = Color(127, 127, 127)
green = Color(0, 255, 0)
grey = Color(127, 127, 127)
han = Color(63, 0, 255)
light_amber = Color(255, 207, 63)
light_azure = Color(63, 159, 255)
light_blue = Color(63, 63, 255)
light_chartreuse = Color(159, 255, 63)
light_crimson = Color(255, 63, 111)
light_cyan = Color(63, 255, 255)
light_flame = Color(255, 111, 63)
light_fuchsia = Color(255, 63, 255)
light_gray = Color(159, 159, 159)
light_green = Color(63, 255, 63)
light_grey = Color(159, 159, 159)
light_han = Color(111, 63, 255)
light_lime = Color(207, 255, 63)
light_magenta = Color(255, 63, 207)
light_orange = Color(255, 159, 63)