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

How do you make a background for forms?

Started by harkthevisualbasiccoder, 22 April 2015 - 08:46 PM
harkthevisualbasiccoder #1
Posted 22 April 2015 - 10:46 PM
Sorry I posted in the wrong forum. Please move this topic if you can.

I was trying to make a answer form have a background like LabyOS Password Login.
Here is the code for my big failure. It was messed up.
And remember, If it spawns, It will create a background like the LabyOS Password Login:


term.setBackgroundColour(colours.white)
write ("")
answer = read()

Can I get help?
Cranium #2
Posted 23 April 2015 - 12:45 AM
Moved to Ask A Pro
HPWebcamAble #3
Posted 23 April 2015 - 01:49 AM
To make the whole screen a single color, do this:


term.setBackgroundColor(colors.white) --# Or the color that you want

term.clear()
Obviously, it will clear anything the screen was previously showing


If you want a specific image to be displayed, you can make it in the paint program, then load it using the paintutils API
Edited on 22 April 2015 - 11:50 PM
harkthevisualbasiccoder #4
Posted 23 April 2015 - 10:31 PM
Not the whole screen.
Just a text form background colour like LabyOS Password Login.
Well, Thanks anyway. I'll test it and see how it works.