Api/dev.colorprint()

From Minux Wiki
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.


eg: dev.colorprint("hello world!","red","blue") prints "hello world" in red text and blue background.

eg: dev.colorprint("hello world!","yellow") prints "hello world" in yellow text and default background