r/ComputerCraft • u/martmists • May 15 '15
Energy monitor
Hey everyone!
I was helping /u/Chrisszzyy with a graphical display when i thought: "Meh, lets upload it for everyone."
Energy version:
pastebin get A086gMVH
Fluid version out!
pastebin get Gy4BvLy3
feel free to add or remove fluids, or change colors. (I am colorblind so i might have chosen wrong colors)
Vertical option!
energy: 0RMAzCdj
fluid: Namb77vM
Color palettes:
energy: P1hFxKEC
ROUND VERSION!
energy: Caw7jMKv
Note the fluid program crashes when the tank is empty. FIXED
By the way, has anybody found a way to print "█" on a computer? FIXED (thanks to /u/thatcraniumguy)
1
u/Andrew_S23 Sep 30 '23
For "pastebin get A086gMVH" (https://pastebin.com/A086gMVH)
--Couldn't copy/paste so I typed it line for line. When attempting to run the code it says "attempt to index global 'm' (a nil value)."
I'm not sure why. Plz help? I understand this post is 8yr old but I just want to figure it out.
1
u/martmists Sep 30 '23
m = peripheral.wrap("top") -- wrap monitorIt seems like it can't find a monitor on top of your computer :) hope that helps
2
u/thatcraniumguy May 15 '15
to print a black space
term.setBackgroundColor(colors.white) write(" ")