Api/dev.colorwrite(): Difference between revisions
Jump to navigation
Jump to search
(Created page with "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.") |
No edit summary |
||
Line 12: | Line 12: | ||
write printstring in the color set by textcolor and backgroundcolor, only affects the one write made with this. | 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 |
Latest revision as of 14:34, 1 October 2024
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