jitter object references

llumen's icon

Hi all,

I'm delving into javascript to resolve an issue I have with some display of text. The problem is that I can't find any reference on syntax of how to create jitter objects and address their params.
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?

Ben Bracken's icon

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.

-Ben

llumen's icon

thx Ben,

I already had those covered (more or less)
so specific question:
when you do:
jshape= new JitterObject("jit.gl.gridshape","screen");
jshape.shape="cube";
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