What are the value’s of the RGBA colors,
I put some text on the screen using this code
import direct.directbase.DirectStart
from direct.gui.OnscreenText import OnscreenText
from direct.gui.DirectGui import *
from pandac.PandaModules import TextNode
text = TextNode('tekst')
text.setText("text on screen")
text.setTextColor(255, 255, 255, 1)
text.setWordwrap(10.0)
text.setAlign(TextNode.ACenter)
text.setCardColor(0, 64, 128, 1)
text.setCardAsMargin(1, 1, 1, 1)
textNodePath = aspect2d.attachNewNode(text)
textNodePath.setScale(0.07)
textNodePath.setPos(-0.5,0,0.5)
run()
This should give some white text one a bleu frame.
but it is black on a green frame.
I see that some people use 0.1 values.
So whats up with the RGBA code??
Sorry if the question is to easy…still a newbie