Hi Brian, I had played around with it a little about two years ago when it first came out and had posted this message on the programming forum including code to provide clickable buttons in the html window to access labs. The challenge to making this functional was and I think remains that there is not a way for the html to send information back to the the J engine. In any case, hope this link to the post helps.
http://www.jsoftware.com/pipermail/programming/2012-December/030604.html Cheers, bob ps. apologies to anyone who is actually a javascript programmer/webpage designer as my style is definitely hack as you go. bt On Nov 24, 2014, at 9:40 AM, Brian Schott <[email protected]> wrote: > A couple of us have been discussing using viewmat to make virtual "crayons" > for first graders in J with the following code. I am limited to using iPad > J, so there are at least 2 "issues" which so far limit the use of the > following code. > > GRB=:1 0 2{"1 (#:i.8){0 255 > > ]A=:>:i.8 > GRB viewmat A > > > > One issue is that viewmat does not seem to accept the GRB argument on iPad > viewmat. The only workaround I have so far is to just use `viewmat A`, > without the palette. > > The other issue is that the resulting graphic is very tiny and I don't know > how to alter its size. I have tried using a physical pinch with no success. > > While I am on the subject of iOS J, I wonder if anyone has used the html > (and javascript, if that is possible) to produce html5 canvas or webgl in > the "." window of the J app? > > Any ideas? > > Thanks, > > > -- > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
