Basics
The following are the basic colors that inksplash provides.
Example
from inksplash import chameleon
print(chameleon.blue("Hello world"))
Note
The above code will print the text that has color of blue.
The following is a list of available colors that we can use on the chameleon object.
blue
Applies a blue color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with blue color.
green
Applies a green color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with green color.
yellow
Applies a yellow color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with yellow color.
white
Applies a white color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with white color.
purple
Applies a purple color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with purple color.
red
Applies a red color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with red color.
cyan
Applies a cyan color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with cyan color.
black
Applies a black color to the text.
Parameters:
value(str): The input text.Returns:
str: The input text with black color.