Following shows a way with isigraph and gl2:

*** script

load'gl2'
coinsert'jgl2'

ABC=: 0 : 0
pc abc;
xywh 0 0 184 173;cc g isigraph rightmove bottommove;
pas 0 0;
rem form end;
)

abc_run=: 3 : 0
wd ABC
wd 'pshow;'
)

abc_g_paint=: 3 : 0
gllines 50?glqwh''
)
NB. paint 23 random lines - resize paints new ones
NB.    abc_run''
***

To update from jijx can:
   glclear''
   gllines 20?100
   glpaint''

On Tue, Jun 29, 2010 at 11:46 AM, Raul Miller <[email protected]> wrote:

> So, let us say I want to make a simple line drawing in J.  More
> specifically, let us say that I have an array of coordinates for
> line segments and I want to see the image they describe.
>
> What is the cleanest way to do this?  (Let us assume J 6 for now, since
> gtk still needs work.)
>
> pd?  If so, how?
>
> gllines?  where do I find documentation on this?  (and it looks like
> it needs a paint event handler -- how do I set that up?)
>
> gl3?  really?
>
> Currently, gl3 is the the technique I have the most confidence in.
> But that requires a full screen of code in "overhead".
>
> Does anyone have any better suggestions?
>
> Thanks,
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to