Writes text at the current cursor position in the current term, using foreground colors from textColour (a string containing colors as used in images loadable by paintutils functions) and background colors from backgroundColour (same as textColour). All characters represent a single hexadecimal digit which is then plugged into the equation c=2^(h-1) where h is the hexadecimal plugged in and c is a the equivalent color that would be plugged into term.setTextColor.

ExamplePrint rainbow text
Prints "Hello world!" in 11-color text.
term.blit("Hello world!","01234456789a","f00000000000")
Output Hello world!

  • text : string
  • textColour : string
  • backgroundColour : string

Returns nil
API term
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.