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

term.setTransparency(1-100)

Started by Goof, 07 May 2013 - 11:25 PM
Goof #1
Posted 08 May 2013 - 01:25 AM
I would like to have a term.setTranhsparency, so f ex. when making a menu, it slowly makes it less transparency for each half (example) seconds.

Maybe this feature could be used very much in OS'es where we right click on the desktop, and then the menu slowly appears.



Please make this in the future :D/>
superaxander #2
Posted 08 May 2013 - 01:40 AM
Hmm interesting wouldn't that look weird?
Lyqyd #3
Posted 08 May 2013 - 01:52 AM
Um, what? I don't see how this would work. At all. Transparent over what? This suggestion makes very little sense.
Goof #4
Posted 08 May 2013 - 02:19 AM
Well… like if you want an sliding animation or something, which slowly appears, then how would we then do that with colors.. there isnt lightGray*^25) or something, so we could adjust the colors printed…
and to use it we do:


for trans = 100, 1, -1
term.setCursorPos(1,1)
term.setTransparency(trans)
print("Hello") -- this would start invisible.. and then slowly get visible...
end
Lyqyd #5
Posted 08 May 2013 - 03:01 AM
This sounds absolutely hellacious for network traffic. It also doesn't seem to fit the feel of the rest of the mod. I predict a "No." (Or perhaps a "Nah").
theoriginalbit #6
Posted 08 May 2013 - 03:24 AM
While I see why you would want it, and why it could be nice to have, you can do "fading" of text by doing black —> grey —> light grey —> white … it gives a fade out effect, reverse the order and it would be fade-in… other colours can be used in similar-ish ways, but these colours work the best.

I don't see this happening. Also I would probably say that it should be
term.setTransparency( [0.1 – 1.0] )
Goof #7
Posted 08 May 2013 - 08:32 AM
maybe… but just lock this OP. now i know it would never happen :(/>
Spongy141 #8
Posted 08 May 2013 - 09:04 AM
I actually like this idea…. to bad though that they probably wont add it :(/>
basdxz #9
Posted 08 May 2013 - 12:34 PM
This is a good idea! Why wouldn't you add this? Although yeah it's kinda a substitute for (nearly) any color you want.
AfterLifeLochie #10
Posted 08 May 2013 - 04:56 PM
I imagine the best you will get is being told to do blending - which is pretty simple if you think about it. Transparency on layers of text is a nightmare, and I hesitate to imagine how implementing that network-side is going to even look.

If it was the transparency of the whole terminal, including frame, that would be handy. We've all had to jump in and out of the terminal to check stuff at some point.
Left4Cake #11
Posted 10 May 2013 - 11:20 PM


This image was for the "HUD helmet post", but I think it works for this topic too.
PixelToast #12
Posted 11 May 2013 - 02:56 PM
This sounds absolutely hellacious for network traffic.
erm, colors are 16 bits, this will only need 7 per character
and i would only use this for black/white or black/green to make awesome monochromeness
Lyqyd #13
Posted 11 May 2013 - 03:01 PM
This sounds absolutely hellacious for network traffic.
erm, colors are 16 bits, this will only need 7 per character
and i would only use this for black/white or black/green to make awesome monochromeness

Um, what? No, I mean that the code above my post would be hellacious on network traffic. Here, let me re-send you this line of the screen a hundred times as quickly as possible. Here, since I love fancy-schmancy effects so much, let me do this every time anything on the screen changes! It'll be fun! Oh, I've got a menu that fades in! Let me send you these twelve lines of the screen a hundred times each as quickly as possible!
PixelToast #14
Posted 11 May 2013 - 03:08 PM
oh, sorry xD
i dissaprove of terminal spam, i even made a program that will crash servers using it