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

[CC 1.74pr18] term.blit inverts colors

Started by CrazedProgrammer, 06 April 2015 - 10:00 AM
CrazedProgrammer #1
Posted 06 April 2015 - 12:00 PM
EDIT: Sorry, wrong subforum/topic. Please delete it. I've posted it in ComputerCraft Beta Versions - Bug Reports.

VERSION:
ComputerCraft 1.74pr18
DESCRIPTION:
It seems very strange, but term.blit("test", "0000", "eeee") draws test with black text and an orange background.
The colors API tells that 0 is white, and e is red.
This means that the colors are inverted. (0 -> f - 0 = f, e -> f - e = 1)
This seems to happen on all computers (command computer and advanced computer/turtle/pocket computer and normal computer/turtle/pocket computer)
and all monitors (advanced and normal).
On the black/white displays I tested it with term.blit("test", "0000", "7777") and that draws test with black text and a light gray background. (which again is inverted)
EXPECTED RESULT:
It should draw test with white text and a red background.
REPRODUCTION STEPS:
Go to the lua prompt and simply type:

term.blit("test", "0000", "eeee")
SCREENSHOT/VIDEO:
Edited on 06 April 2015 - 10:16 AM
Lupus590 #2
Posted 06 April 2015 - 01:07 PM
use the report button to request a delete (done this for you)
Lyqyd #3
Posted 06 April 2015 - 03:28 PM
Closed as duplicate report (see Beta bugs topic).