ComputerCraft Forums

ComputerCraft => Programs => APIs and Utilities => Topic started by: Lucasx150 on Aug 28, 2020, 07:16 pm

Title: rednetspy
Post by: Lucasx150 on Aug 28, 2020, 07:16 pm

( (
Code: (
Code Select
pastebin get s5wXb5fD rednetspy
Title: rednetspy
Post by: QuickMuffin8782 on Sep 03, 2020, 02:29 pm
That utility is great to do to spy on other rednet messages. However you can as well change colors by doing this code below.
There is a possibility for custom colors on some emulators, but in game is supported.
You can also change it to writeColor(txt, color) and change the print(txt) to write(txt) if you want to have a write sys as well.

Code Select
function printColor(txt, color)
    local oldColor = term.getTextColor()
    if term.isColor()

Here is a example color function. I will later post a color utility api, when I get the chance.

Code Select
printColor("Hello, World!", 0xFF7400) --Everyone didn't know this can be possible until I found out about it. (Except some coders)
With that way of doing colors by hex code (0xRRGGBB) you can also tinker around with it using a colorutils functions I can work on. This can be useful since CCEmuX supports it, IDK if other emulators can support it. But, since Mimic can only support straight up color given variables in the color api, it is not supported for the custom color hex code.