Forums > Javascript

jit.lcd + javascript = possible yet? ever?

June 6, 2009 | 7:34 pm

> Sorry but jit.lcd does not work from Javascript at this time.

This was true in November 2005 – is it still true?

If so, is this ever going to change?

And if not, is there an example anywhere of how one might use it?

(I’m trying to make use of jit.lcd’s text functions, so jit.gl.sketch is not an alternative.)

(Actually, what I’m looking for is some way to get feedback on the pixel dimensions (width) of a given string of text – I can get it from jit.lcd by using getpenloc after a write command. I can’t figure out any way to get this information from jit.gl.text2d or jit.gl.text3d – maybe I’m missing something?)


June 9, 2009 | 6:59 pm

As requested, an example of easily getting feedback on text length in jit.lcd. I am unaware of any way of doing this kind of thing in jit.gl land, but would love to be enlightened.

Also, while we’re on the topic of jit.lcd: according to its help file, it supports (and only supports) 4 char data – so then is there any way to address the 4th (alpha) channel?

– Pasted Max Patch, click to expand. –

June 15, 2009 | 10:40 am

Excellent example & very informative – thanks for putting it together. Much appreciated.

pH


June 16, 2010 | 10:33 am

weird! I don’t see vanille b.’s example! Did you edited and deleted it, vanille?


May 19, 2011 | 7:41 pm

Any other clues on this? I’m not getting any joy out of jit.findbounds… (will keep fiddling obviously)


May 20, 2011 | 11:43 am

Here you go – had to dig around, tucked away many folders deep.


May 20, 2011 | 1:51 pm

Nice one pseudostereo, interesting!

Looks like what i had should have worked (not using JS) but doesn’t for some reason – so many thanks!

jb


May 20, 2011 | 11:33 pm

just to be clear, vanille béchamel made the patch, not me – I just posed the question!


Viewing 8 posts - 1 through 8 (of 8 total)