Pascal, Viewmat is a dyadic verb. All you need is a table of (N,3) of colors like
]P=:3 3$255 0 0 255 255 0 0 0 255 255 0 0 255 255 0 0 0 255 This selects red, yellow and blue from (256x^3) colors. 256x ^3 16777216 Give a child a box with 16,777,216 crayons next Christmas! Now select a table of choices of your three colors and paint your picture. load 'viewmat' ]W=:?4 7$3 P viewmat W Viewmat W Now you can "fix" my fliht plan! Linda Viemat used as a monad chooses the colors for you. Linda -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of 'Pascal Jasmin' via Programming Sent: Saturday, January 2, 2016 10:09 PM To: [email protected] Subject: Re: [Jprogramming] feedback wanted for mandelbrowse tutorial looks cool. I don't know viewmat or mandelbrot formula well, but a pair of rationals might work. a fairly insignificant criticism is mbrowse_z_ =: conew & 'mbrowse' is more robustly, mbrowse_z_ =: conew bond 'mbrowse' ________________________________ From: Michal Wallace < <mailto:[email protected]> [email protected]> To: <mailto:[email protected]> [email protected] Sent: Saturday, January 2, 2016 9:11 PM Subject: [Jprogramming] feedback wanted for mandelbrowse tutorial Hey all. Happy new year! I made a small GUI app for a tutorial video I'm planning: <https://github.com/tangentstorm/mandelbrowse> https://github.com/tangentstorm/mandelbrowse It draws the mandelbrot set, and lets you zoom in and out. I was hoping I could get some feedback on the code before I filmed anything. In particular, you can only zoom in a few steps before the edge starts smoothing out. I think the problem has to do with lack of precision in J's complex number type. Is there anything I can do about this, other than implementing my own complex number type as a pair of extended precision numbers? Thanks! -Michal ---------------------------------------------------------------------- For information about J forums see <http://www.jsoftware.com/forums.htm> http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see <http://www.jsoftware.com/forums.htm> http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
