Welcome to tamcolors’s documentation!¶
about¶
tamcolors is a terminal game library which supports multiplayer and audio. tamcolors gives a buffer which lets the user set the character, foreground color and background color which can draw at a stable FPS of 25 on all supported console.
pip install tamcolors¶
table tennis example¶
import tamcolors
tamcolors.examples.tabletennis.run()
basic example¶
import tamcolors
tamcolors.examples.basic_console.run()
from tamcolors.tam_basic import console
from tamcolors.tam_io.tam_colors import *
console.printc("Hello", "World!", ("light blue", "white"), same_color=True)
name = console.inputc("Whats Your Name? >>> ", ("light aqua", "gray"))
console.clear()
console.printc("Hello, ", ("default", "default"), name, (GREEN, WHITE), "!", ("gray", "light aqua"), sep="")
icon example¶
import tamcolors
tamcolors.examples.icon.run()
- tamcolors
- tamcolors package
- Subpackages
- tamcolors.examples package
- Submodules
- tamcolors.examples.alpha module
- tamcolors.examples.basic module
- tamcolors.examples.clouds module
- tamcolors.examples.colors module
- tamcolors.examples.connection_loopback module
- tamcolors.examples.connection_multi_player module
- tamcolors.examples.host_loopback module
- tamcolors.examples.host_multi_player module
- tamcolors.examples.icon module
- tamcolors.examples.rgb_color module
- tamcolors.examples.sandy_check module
- tamcolors.examples.tabletennis module
- tamcolors.examples.tam_key_manager module
- tamcolors.examples.tam_keys module
- tamcolors.examples.tam_list_surface module
- tamcolors.examples.tam_loop module
- tamcolors.examples.tam_print module
- tamcolors.examples.tam_text_box module
- Module contents
- tamcolors.tam package
- tamcolors.tam_basic package
- tamcolors.tam_c package
- tamcolors.tam_io package
- Submodules
- tamcolors.tam_io.ansi_256_drivers module
- tamcolors.tam_io.ansi_true_color_drivers module
- tamcolors.tam_io.any_drivers module
- tamcolors.tam_io.io_tam module
- tamcolors.tam_io.null_drivers module
- tamcolors.tam_io.tam_colors module
- tamcolors.tam_io.tam_drivers module
- tamcolors.tam_io.tam_identifier module
- tamcolors.tam_io.tam_keys module
- tamcolors.tam_io.tam_surface module
- tamcolors.tam_io.tcp_io module
- tamcolors.tam_io.uni_drivers module
- tamcolors.tam_io.win_drivers module
- Module contents
- tamcolors.tam_tools package
- Submodules
- tamcolors.tam_tools.tam_color_palette module
- tamcolors.tam_tools.tam_fade module
- tamcolors.tam_tools.tam_film module
- tamcolors.tam_tools.tam_icon module
- tamcolors.tam_tools.tam_key_manager module
- tamcolors.tam_tools.tam_list_surface module
- tamcolors.tam_tools.tam_menu module
- tamcolors.tam_tools.tam_placing module
- tamcolors.tam_tools.tam_print module
- tamcolors.tam_tools.tam_str module
- tamcolors.tam_tools.tam_text_box module
- Module contents
- tamcolors.tests package
- Subpackages
- tamcolors.tests.tam_basic_tests package
- tamcolors.tests.tam_io_tests package
- Submodules
- tamcolors.tests.tam_io_tests.any_drivers_tests module
- tamcolors.tests.tam_io_tests.io_tam_tests module
- tamcolors.tests.tam_io_tests.tam_colors_tests module
- tamcolors.tests.tam_io_tests.tam_keys_tests module
- tamcolors.tests.tam_io_tests.tam_surface_tests module
- tamcolors.tests.tam_io_tests.uni_drivers_tests module
- tamcolors.tests.tam_io_tests.win_drivers_tests module
- Module contents
- tamcolors.tests.tam_tests package
- tamcolors.tests.tam_tools_tests package
- Submodules
- tamcolors.tests.tam_tools_tests.tam_color_palette_tests module
- tamcolors.tests.tam_tools_tests.tam_fade_tests module
- tamcolors.tests.tam_tools_tests.tam_film_tests module
- tamcolors.tests.tam_tools_tests.tam_key_manager_tests module
- tamcolors.tests.tam_tools_tests.tam_list_surface_tests module
- tamcolors.tests.tam_tools_tests.tam_menu_tests module
- tamcolors.tests.tam_tools_tests.tam_placing_tests module
- tamcolors.tests.tam_tools_tests.tam_print_tests module
- tamcolors.tests.tam_tools_tests.tam_str_tests module
- tamcolors.tests.tam_tools_tests.tam_text_box_tests module
- Module contents
- tamcolors.tests.tests_tests package
- tamcolors.tests.utils_tests package
- Submodules
- tamcolors.tests.utils_tests.compress_tests module
- tamcolors.tests.utils_tests.encryption_tests module
- tamcolors.tests.utils_tests.identifier_tests module
- tamcolors.tests.utils_tests.immutable_cache_tests module
- tamcolors.tests.utils_tests.log_tests module
- tamcolors.tests.utils_tests.object_packer_tests module
- tamcolors.tests.utils_tests.tcp_tests module
- tamcolors.tests.utils_tests.timer_tests module
- tamcolors.tests.utils_tests.transport_optimizer_tests module
- Module contents
- Submodules
- tamcolors.tests.all_tests module
- tamcolors.tests.test_multi_task_helper module
- tamcolors.tests.test_utils module
- Module contents
- Subpackages
- tamcolors.utils package
- Submodules
- tamcolors.utils.compress module
- tamcolors.utils.encryption module
- tamcolors.utils.identifier module
- tamcolors.utils.immutable_cache module
- tamcolors.utils.log module
- tamcolors.utils.object_packer module
- tamcolors.utils.tcp module
- tamcolors.utils.timer module
- tamcolors.utils.transport_optimizer module
- Module contents
- tamcolors.examples package
- Module contents
- Subpackages
- tamcolors package