The numbers are out of range regardless of whether I use jhs or jqt. Also, the colors I see are the same regardless of whether I use jhs or jqt.
If you are getting something different then there must be some other difference involved. Thanks, -- Raul On Tue, Jun 16, 2015 at 3:18 AM, Linda Alvord <[email protected]> wrote: > If you look at this in JHS you can see the problem doesn't seem to be the > numbers being out of range. Magenta and cyan light should be blue which it > is. > > However, magenta and yellow should be red so the lowest right corner should > be the brightest red. > > Cyan and yellow should be green and the lowest right corner is not the > brightest green. > > So I would guess that yellow has a problem. > > Linda > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Brian Schott > Sent: Monday, June 15, 2015 11:21 AM > To: Programming forum > Subject: Re: [Jprogramming] Trouble making patter for a color cube > > Linda, > > I think Bill might have been offering the clue that numbers bigger than 255 > are not good or unpredictable for viewmat, or maybe not good for RGB. > > On Mon, Jun 15, 2015 at 2:55 AM, Linda Alvord <[email protected]> > wrote: > >> If you name the two images S and T: >> >> load 'viewmat' >> N=:<.63.8*i.5 >> MAGENTA=:(N,4#255),.((4#0),N),.N,4#255 >> YELLOW=:(2#"1 ,.N,4#255) ,.(4#0),N >> CYAN=:((4#0),N),.2#"1 ,.N,4#255 >> A=:<.0.5*(i.9 9)+i.9 9 >> S=:81 3$,><"1 (|.YELLOW)+"1/|.MAGENTA >> S viewmat A;'S' >> T=:81 3$,><"1 (|.CYAN)+"1/|.MAGENTA >> T viewmat A;'T' >> >> S;T >> >> Each image is 9x9 array of colors. Look at thtop and left 5x5 corner >> of T. You find a perfect face of the color cue which grades both cyan >> and magenta correctly to form BLUE. >> >> In S, this does not happen! All goes well in 4X5 rows but the 5th row >> does not provide the yellow correctly. It should end in RED. >> >> Any clues why not? >> >> Linda >> >> -- > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
