Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
sshika

gpu and the colors

Question

hello

 

i've a new problem with OC

 

i want to use gpu.setColor, but there is a problem :

 

i use this program in lua

 

local term = require("term")
local computer = require("computer")
local component = require("component")
local gpu = component.gpu
 
term.clear()
 
local function setColor(bg,fg)
  gpu.setBackground(bg)
  gpu.setForeground(fg)
end
 
setColor(0xFF00FF, 0x00FF00)
gpu.set(6,7,"test1")
setColor(0x00FF00, 0xFF00FF)
gpu.set(6,8,"test2")
setColor(0x000000, 0xFFFFFF)
 
and the result 
 

cn48hgYs.png

 

"test2" is in the good color (backgournd and foreground, but the "test1" have a good background, but a bad foreground.

 

can you help me to resolve it ?

 

thanks

Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Fixed in the latest builds. Sorry about that!

 

You don't have to feed sorry about that!

 

What a great mod! it makes Mc completely different for me, I really love it!,

 

I'm a programmer of industrials machinery, and this game, (MC + OC) give me a free ground to test a lot of industrials concepts, in an funny way.

 

Thank you very much for all of this!

 

Moonye

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.