Jump to content




Background for one cell on the screen


  • You cannot reply to this topic
1 reply to this topic

#1 Jasonfran

  • Members
  • 148 posts
  • LocationEngland

Posted 27 October 2012 - 05:24 PM

How do I set the background for one cell. I can only find the function to set the whole background colour.

#2 Goof

  • Members
  • 751 posts

Posted 27 October 2012 - 05:31 PM

in my program, i only do something like this:


term.setBackgroundColor(colors.red) -- sets the backgroundcolor for the current pixel, until the screen will refresh - that is for example Clearing the screen with term.clear() or something else....
term.setCursorPos(10,10)
print("Hello") -- prints "hello" at pos 10,10


then it would look like this:

Posted Image





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users