Api/dev.colorwrite()

From Minux Wiki
Jump to navigation Jump to search

this function is part of the dev. api and used to write a string in color


usage:

dev.colorwrite(printstring, textcolor, backgroundcolor)


output:

write printstring in the color set by textcolor and backgroundcolor, only affects the one write made with this.


examples:

dev.colorwrite("hello world!","red","blue") writes "hello world" in red text and blue background.

dev.colorwrite("hello world!","yellow") writes "hello world" in yellow text and default background