Palettes must be tables. Thanks, Raul. Linda
-----Original Message----- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller Sent: Friday, July 24, 2015 6:32 AM To: Programming forum <programm...@jsoftware.com> Subject: Re: [Jprogramming] Trouble making patter for a color cube I think you want: load 'viewmat' (,:0 0 255) viewmat 0 (,:0 255 0) viewmat 0 (,:0 255 255) viewmat 0 (,:255 0 0) viewmat 0 (,:255 0 255) viewmat 0 (,:255 255 0) viewmat 0 To see why compare: 0 { 0 0 255 0 and: 0 {,:0 0 255 0 0 255 You can try that with the other left arguments for viewmat, if you like. Thanks, -- Raul On Fri, Jul 24, 2015 at 3:12 AM, Linda Alvord <lindaalv...@verizon.net> wrote: > Strange results! This should be six separate image in six colors. I don't > have any other version than the current beta version so I don't know if this > would always have happened, but I only get red and black images??? > > load 'viewmat' > 0 0 255 viewmat 0 > 0 255 0 viewmat 0 > 0 255 255 viewmat 0 > 255 0 0 viewmat 0 > 255 0 255 viewmat 0 > 255 255 0 viewmat 0 > > Linda > > -----Original Message----- > From: programming-boun...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord > Sent: Sunday, July 5, 2015 1:19 PM > To: programm...@jsoftware.com > Subject: Re: [Jprogramming] Trouble making patter for a color cube > > Mike, Thanks for the suggestion about the missing tab. Thanks to Bill, the > palette ALL is in the range 0-255. The pattern I now upside down from light > to dark values. > > Also GRB palette emerges naturally from #:i.8 which accounts for individual > palettes like GREEN with values in colors indicate in the left column. > > I hope this makes more sense. > > load 'viewmat' > A=:#:i.8 > N=:<.63.75*i.5 > B=:((4#0),N),.N,4#255 > BIGBOX=:<"2(|."2)1 0 2{"1(|:"2)8 3 9$,|:(,A){"1 B 'BLACK BLUE RED MAGENTA > GREEN CYAN YELLOW WHITE'=:>BIGBOX > LYELLOW=:(i.5){"2 YELLOW > LCYAN=:(i.5){"2 CYAN > LMAGENTA=:(i.5){"2 MAGENTA > GREEN=:(4+i.5){"2 GREEN > RED=:(4+i.5){"2 RED > BLUE=:(4+i.5){"2 BLUE > BACK=:25 3$,LMAGENTA<."1/LYELLOW > TOP=:25 3$,LCYAN<."1/LYELLOW > LEFT=:25 3$,LMAGENTA<."1/LCYAN > FRONT=:25 3$,GREEN+"1/BLUE > RIGHT=:25 3$,GREEN+"1/RED > BASE=:25 3$,RED+"1/BLUE > F=:i.5 5 > T=:149,4 5$0 > L=:|:T > R=:|:|.T > WOW1=:(R,.(|.F),.L),((|:|.25+F),.(50+F),.|.T) > WOW2=:WOW1,(T,.(75+F),.|:|.|:100+F) > WOW3=:WOW2,(R,.(|.125+F),.L),"2,5(#"0) 0 150 0 > ALL=:BACK,LEFT,TOP,FRONT,RIGHT,BASE(,"2)0 0 0 ALL viewmat WOW3;'Color Cube' > > 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 > > ---------------------------------------------------------------------- > 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