Api/dev.colorprint()
Jump to navigation
Jump to search
this function is part of the dev. api and used to print a single line in color
usage:
dev.colorprint(printstring, textcolor, backgroundcolor)
output:
prints printstring in the color set by textcolor and backgroundcolor, only affects the one print made with this.
background argument is optional, defaults to black if not provided.
eg: dev.colorprint("hello world!","red","blue") prints "hello world" in red text and blue background.