I just am lost when looking for how to set the text of a jit.gl.text2D instance when creating one instance
Where is the documentation on this?
Check out Jitter tutorials 45-47, you might find something useful there. If you have specific questions after that, post how far you have gotten.
I already had those covered (more or less)
so specific question:
when you do:
jshape= new JitterObject("jit.gl.gridshape","screen");
you get a cube, changing position is jshape.position, so these are the ‘normal’ jitter attributes
But when you have:
jtext = new JitterObject("jit.gl.text2d","screen")
how do you set the text of this object?
jtext.text="test" does not work
I could figure this out myself if I had a reference of what functions there are available, but I don’t find any reference
var mytitle = new JitterObject ("jit.gl.text2d", "mywindow") ; mytitle.color = [0.83, 0.74, 0.84, 1.] ; mytitle.font ("Comic Sans MS") ; mytitle.size (48) ; mytitle.text ("toto") ;
myobject.something = k
Attribute or message ; sometimes i don’t know why, i just do some test.
C74 RSS Feed | © Copyright Cycling '74