Not just "complementarity" but color coordinated. (That's something of a pun).

   #:i.8
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1

Those are the coordinates of the corners of a cube.

Those are also colors:

'BLACK BLUE GREEN CYAN RED MAGENTA YELLOW WHITE'=:#:i.8

Thanks,

-- 
Raul


On Sat, Jun 27, 2015 at 4:27 AM, Mike Day <[email protected]> wrote:
> Thanks, Raul.
>
> Yes, I think that's right.  I'd deliberately chosen non-complementary
> colours for diagonally opposite corners to show that they didn't need
> to be complementary,  at the cost of needing to specify a few more
> colours.
>
> If complementarity is required,  since the corners A B C D in my labelling
> are opposite to G H E F respectively,  we may relax the requirement for
> mycube's right argument to have 8 elements.  with,  for example:
> 'A B C D H G F E' =. 8 {. y, -.1 0 3 2 { y
> You can then specify just
>
>   30 mycube BLACK,BLUE,CYAN,GREEN
>
> to achieve the results same results.
>
> I think
>     5 mycube RED,MAGENTA,WHITE,:YELLOW
> produces most of what Linda achieves in her latest posting,
> although I concede it doesn't have sticky tabs.
>
>
> I had used the apparently strange ordering of A B C D H G F E because
> these labels line up reasonably well in the net that Linda uses, so that
> the top three middle faces are labelled 4 2$ 'HGEFABCD' .  It might have
> been easier to visualise if I'd labelled "BACK" as ABCD and "FRONT" as
> HGEF....
>
> Thanks again,
>
> Mike
>
>> Mike set things up so we can change the colors on the line which invokes
>> mycube.
>>
>> I think
>>
>> 30 mycube BLACK,BLUE,CYAN,GREEN,YELLOW,WHITE,MAGENTA,:RED
>>
>> gets it right. Does that seem right to you?
>>
>> I've changed the gist to use that line.
>>
>> Thanks,
>>
>
>
> ---
> 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

Reply via email to