Mike, Don't take this to be "right" answer to your question. This is only my extrapolation of wht is happening.
The left palate can be as many number triples as you want. Any numbers between 255 and 510 are values of green, red and blue that are brighter than the full intensity of each color. Now write a numeric scalar, list or table of numbers to select each color you want and the shape of the viewat matches the shape of the array you make. Linda -----Original Message----- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Mike Day Sent: Thursday, July 2, 2015 4:04 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Trouble making patter for a color cube Linda, before I forget, and if it matters to you, please note that you only have 5 sticky tabs. You omit the one between TOP and RIGHT (I think). Your net layout is the fifth (origin 1) in the wiki cube page. (This is still the case with your latest posting, which arrived while I was writing this.) Anyway, as for the discussion on the range of "ALL", doesn't this depend on the definition of viewmat. In http://www.jsoftware.com/docs/help602/user/script_viewmat.htm#viewmat the optional left argument is named "hue", and we are told that hue may be one of: a 3-col table of RGB triples, or a list of RGB values, or 'rgb' but it assumes we know what it means in the first two cases. Some definitions of RGB triple(t)s found elsewhere have white as 3#255, so it's not clear what's going on here, since your latest effort evidently succeeds with twice this value. I tried halving your "ALL" value, and the result was pretty sad, while doubling the values in "colours" (triple in [0,255] in my version results in abrupt step changes across the faces. SO - what does viewmat mean by "hue"? No help at all! Mike On 02/07/2015 07:14, Linda Alvord wrote: > I tried <. In each of the three light mixes and the pattern looks good. (>. > Is too much light and all square turn white) > > I can even explain it pretty well. For the full collors, turning on > two lights at a time, adds light so +s works. However, to get the > lighter hues you have added extra light to both colors so adding can > be too much and it seems that the lesser of the pair stays in the > acceptable range. Thus all those numbers up to 510 are legitimate > colors for a viewmat palette. Does that seem reasonable as an explanation to you? > > Linda > > -----Original Message----- > From: programming-boun...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of bill > lam > Sent: Wednesday, July 1, 2015 9:17 PM > To: Programming forum > Subject: Re: [Jprogramming] Trouble making patter for a color cube > > Perhaps you could also experiment other formulae for color addition > instead of using +, try >. eg > BASE=:25 3$,LYELLOW>."1/LCYAN > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm