What do you mean by "does not work"? Your code works for me.
Thanks, -- Raul On Sun, Jul 26, 2015 at 4:28 PM, Linda Alvord <lindaalv...@verizon.net> wrote: > Raul, could you please check this code again. It doesn't seem to work at > all anymore. Thanks. > > 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 12:51 PM > To: Programming forum <programm...@jsoftware.com> > Subject: Re: [Jprogramming] Trouble making patter for a color cube > > That looks plausible. > > The colors in the middles of the squares are interesting. > > The top middle square's center color might be something of an "indian red". > > The middle of the square below that might be an "aquamarine". > > The color in the middle on the left side might be a "medium purple". > > The color in the middle on the right side might be an "olive drab" > > The color in the middle to its right might be a "turquoise". > > The color in the middle of the bottom square is probably a "purple"? > > Or at least, those are the best I can come up with, for names. > > Thanks, > > -- > Raul > > > On Fri, Jul 24, 2015 at 11:33 AM, Linda Alvord <lindaalv...@verizon.net> > wrote: >> Since it looks ugly it will probably stay a secret! In any case, here is > a >> mini cube pattern I modified your 'plan'. It folds so black is in back >> corner. Blue axis is to the left, red to the front and green is up. So, >> white is the top right corner. >> >> It is made from only selecting 3 corners for each square and figures out > the >> fourth on its own. Seewhat you think. >> >> load 'viewmat' >> >> 'E B G C R M Y W'=:#:i.8 >> V=:<E;E;E >> FRONT=:<M;R;W >> LEFT=:<M;W;B >> TOP=:<W;Y;C >> BACK=:<C;G;B >> RIGHT=:<G;Y;E >> BASE=:<B;E;M >> >> face=: 3 :0 >> 'O X Y'=.y >> brush=.D=: <.255*O+"1]0.5*((i.3)*/Y-"1 O)+"1/(i.3)*/X-"1 O >> ) >> >> cube=: 3 :0 >> plan=:4 3$V,FRONT,V,LEFT,TOP,V,V,BACK,RIGHT,V,BASE,V >> paint=:,/,/>,"_1 each/"1 C=:face each plan >> paint viewmat i.12 9 >> ) >> >> cube '' >> >> 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 9:30 AM >> To: Programming forum <programm...@jsoftware.com> >> Subject: Re: [Jprogramming] Trouble making patter for a color cube >> >> Well... actually, there is another way. And the red was a hint about that >> other way. >> >> To see the other way, try this: >> >> load 'viewmat' >> (256#.0 0 255) viewmat 0 >> (256#.0 255 0) viewmat 0 >> (256#.0 255 255) viewmat 0 >> (256#.255 0 0) viewmat 0 >> (256#.255 0 255) viewmat 0 >> (256#.255 255 0) viewmat 0 >> >> Do you think we should keep this a secret? >> >> Thanks, >> >> -- >> Raul >> >> >> >> On Fri, Jul 24, 2015 at 9:23 AM, Linda Alvord <lindaalv...@verizon.net> >> wrote: >>> 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 >> ---------------------------------------------------------------------- >> 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