Jump to content




256 shades of gray


  • You cannot reply to this topic
1 reply to this topic

#1 Cross_Sans

  • Members
  • 122 posts
  • LocationFrance

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:
Posted Image
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 by Redall, 20 December 2017 - 05:11 PM.


#2 MisterMeister32

  • Members
  • 6 posts
  • LocationGermany

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)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users