Like this?
mi=: 1 : '((m + *:)@{. , <:@{:)^:((2 > |@{.) *. 32 < {:)^:_'
mp=: 4 : '|{: z mi 126,~z=. x j. y'"0
mx=: _0.5 + 1.5 * [: (my=: %~ i:) 4 * ]
mb=: [: |: mx mp/ my
a.{~ mb 6
~~~~~}}}}|||||||||||||{{{{zzywrk {{{{|||}}}}}}}}}
~~~}}}||||||||||||{{{{{{zzywoe `]xzzz{{||||}}}}}}
~~}}|||||||||||{{{{zzyr[tvFqo" Xppowxxmz{||||}}}}
~~|||||||||{{zzzzzzyyvsm vyz{|||||}}
~|||{{{{{zzymtvutvwvuH Zy{{|||||}
~{{{{{zzzywv] k xz{{|||||}
~ txyz{{|||||}
~{{{{{zzzywv] k xz{{|||||}
~|||{{{{{zzymtvutvwvuH Zy{{|||||}
~~|||||||||{{zzzzzzyyvsm vyz{|||||}}
~~}}|||||||||||{{{{zzyr[tvFqo" Xppowxxmz{||||}}}}
~~~}}}||||||||||||{{{{{{zzywoe `]xzzz{{||||}}}}}}
~~~~~}}}}|||||||||||||{{{{zzywrk {{{{|||}}}}}}}}}
----- Original Message ----
From: Andrew Nikitin <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, June 29, 2006 8:02:09 PM
Subject: [Jprogramming] boolean matrix display
This unicode stuff in new j6 is really great.
I ported a boolean matrix visualizer that I wrote, ironically, for j7.
db=:(2$,:2 1) ((4 u: 32 9600 9604 9608) {~ #.@|.@,);.3 ]
Try it to view Ulam spiral
db 1 p: 1 + (-~ >./@,) |:@|.@((# + ]),. [EMAIL PROTECTED])^:80 i.1 1
or just checkerboard pattern
cb=:{. 0 1 $~ ] + 1 + 2&|
db cb 8 8
I know, viewmat can do that and more but there was no viewmat in j7 and it
will work under linux console, so ther must be value to it.
Is the topic of visualizing objects in text mode interests somebody?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm