colour_to_ansi | R Documentation |
Convert plain text colour to ANSI code
colour_to_ansi(colour)
colour |
colour in plain text ("red", "green", etc.) to convert to ANSI |
string representing provided colour as ANSI encoding
colour_to_ansi("red") # gives: "\033[31m"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.