Api/dev.colorprint(): Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
(Created page with "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.")
 
No edit summary
Line 12: Line 12:


prints printstring in the color set by textcolor and backgroundcolor, only affects the one print made with this.
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.

Revision as of 14:33, 1 October 2024

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.