trace - winnichenko/BLOB-87 GitHub Wiki
trace
trace message [color]
Parameters
- message : the message to print in the console. Can be a 'string' or variable.
- color : the index of a color in the current palette (0..15)
Description
This is a service function, useful for debugging your code. It prints the message parameter to the console in the (optional) color specified.
Tips:
- The Lua concatenation operator is
..
(two periods) - Use the console cls command to clear the output from trace
Example
-- trace demo
cls()
function TIC()
trace('Hello console:'..time())
trace('This text is blue',8)
end