Background Color
The following are a list of background colors inksplash provides.
Example
from inksplash import chameleon
print(chameleon.bg_black("Hello world"))
Note
The above code will print the text that will have a background color of black.
The following is a list of available background colors that we can use on the chameleon object.
bg_black
Applies a black background color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with black background color.
bg_red
Applies a red background color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with red background color.
bg_green
Applies a green background color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with green background color.
bg_yellow
Applies a yellow background color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with yellow background color.
bg_blue
Applies a blue background color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with a blue background color.
bg_purple
Applies a purple background color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with a purple background color.
bg_cyan
Applies a cyan background color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with a cyan background color.
bg_white
Applies a white background color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with a white background color.