jit.lcd initialization

Roman's icon

HI

Can please anyone tell me how do i initialize the jit.lcd object in java. I mean all my tries to find the right syntax failed.

What would be the rigth syntax if i would like to create an Object with like that jit.lcd 4 char 320 240 ?

Thanks in advance......

projects's icon

Hi Roman,

You should use the constructor with the following signature:

public JitterObject(String classname, Atom[] args)

so your code might look like

Atom a[] = new Atom[4];

a[0] = Atom.newAtom(4);
a[1] = Atom.newAtom("char");
a[2] = Atom.newAtom(320);
a[3] = Atom.newAtom(240);

JitterObject jo = new JItterObject("jit.lcd", a);

Ben