I guess you're right that the omissions are deliberate.  Experimenting with
other moduli, I see that many choices give long, spindly results.  However,
17 seems to work OK as shown in the following modification of your code:

primenebulaP8_17=: 3 : 0
NB. scan left +/ on movement steps
 d=. ({.,#)/.~+/\ (_1 _1,0 _1,1 _1,_1 0,1 0,_1 1,0 1,:1 1){~8|17|p: i.y
NB. normalize coordinates to upper right quadrant and calculate size
 'gx gy '=. >: >./ XY=.(2{."1 d) -"1 {.~&2 <./ d
 smoutput (": gx),' x ', ": gy         NB. show picture size
 viewmat (2{"1 d) (<"1 XY) } 0$~ gx, gy
)

I'm attempting to avoid the arbitrary nature of the original algorithm by
specifying the eight likely  directions in the plane, i.e. (starting at
"X"):
012
3X4
567

On Thu, Jan 7, 2010 at 2:04 PM, Aai <[email protected]> wrote:

> ... and try this f.e.:
>
>   require 'viewmat'
>   primenebulaP 3e7
> 1045 x 999
>
>
> --
> Met vriendelijke groet,
> =@@i
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to