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

[LUA] [Glitch?] Screen goes green when setting the cursor pos

Started by Geforce Fan, 28 December 2012 - 03:00 PM
Geforce Fan #1
Posted 28 December 2012 - 04:00 PM
Code: pastebin.com/WDExyTyG
What I did:
Input'd 1
Selected color: 6
Input'd 2
Place a dot.
Clicked the spot to trigger the function choices
Result:
Lyqyd #2
Posted 28 December 2012 - 04:26 PM
You cleared the screen without changing the background color to whatever you wanted it to be. paintutils.drawPixel doesn't set the background color to anything other than the pixel color you want drawn, so of course when you clear the screen, it will become entirely that color.
Geforce Fan #3
Posted 28 December 2012 - 04:49 PM
I feel freaking stupid right now.