Oleg,
Here is a slightly modified drawing and a see verb. On my systems: jwdw, jwdp-windows, jwdp-linux, and jwdp-mac the see result is identical and is as follows:

*
*
 *
  **   *
   *****
   *   *
   *   *
   *   *
   *****

If displayed with a fixed pitch font the right side of the rectangle lines up and is under the pixel at 4 3. The results are correct and identical on all my platforms, including the Mac.

Please try it on your Mac and confirm that you get a different result. Results from other Mac users appreciated.

My Mac is: 10.3.2 with java -version is 1.4.2_03-117.1.

*** glrect_location.ijs
coinsert 'jgl2' [ require 'gl2'

f_run=: 3 : 0
 wd 'pc f;xywh 0 0 50 50;cc g isigraph;pas 0 0;'
 NB. initialize form here
 wd 'pshow;'
)
f_close=: wd bind 'pclose'

f_g_paint=: 3 : 0
 glpixel 0 0,1 1,2 2,3 3,4 3,8 3,:4 8
 glrect 4 4 5 5
)

see=: 3 : 0
' *'{~0=10 10$glqpixels 0 0 10 10
)
***

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to