This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Cross_Sans's profile picture

256 shades of gray

Started by Cross_Sans, 20 December 2017 - 04:11 PM
Cross_Sans #1
Posted 20 December 2017 - 05:11 PM
Hi, long time ago I didn't post something. With the first pre-release of ComputerCraft 1.80, I decided to show how term.setPaletteColor(…) was useful in many cases. Here is an example of what you can do with this precious function:

Pretty cool isn't it ?

And here is the program to reproduce the following:

for i = 1, 14 do
 term.setBackgroundColor(colors.black);
 write(" ");
 term.setPaletteColor(2 ^ i, colors.rgb8(i * 6 / 100, i * 6 / 100, i * 6 / 100));
 term.setBackgroundColor(2 ^ i);
 for i = 1, 14 do
  term.setTextColor(2 ^ i);
  write(string.char(127));
 end
 print();
end

It's such a great improvement for ComputerCraft. By the way, this function is available only in ComputerCraft 1.80pr0.

Anyways, this was a very simple demonstration of what you can do with this; have a nice day,
Alex.
Edited on 20 December 2017 - 04:11 PM
MisterMeister32 #2
Posted 22 March 2018 - 12:24 PM
Interesting, never thaougt about using the special characters for dithering.(I don't like dithering, makes images look very fuzzy)