On Tue, Aug 10, 2010 at 5:40 PM, Zsbán Ambrus <[email protected]> wrote: > img=: 240 320 $ a.i. 2!:0 'curl > "http://rosettacode.org/mw/images/c/c6/Pentagon.png" | convert - > gray:-' > '.@'{~ (<(+/%#)@:,) _10+/\"1] _10+/\ img
This hardcodes the image height and width (in pixels) to the code. You could get them directly from the image file with imagemagick, eg. "identify -format %h\ %w", but that is left as an exercise to the reader. Ambrus ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
