Artists often mix each color in their palette with each color. Here a GRB
palette has black,blue,magenta, red,cyan,green, yellow and white.

 

Using a technique similar to that used for a mileage between cities, I
remove duplicates.

 

Run this code in JHS. Look at viewmat C+B*A. Each of the eight colors are in
the diagonal from upper left to lower right. Seven new colors are available
in the mixed colors.

 

What I want to do is make a table of these results, but I can't seem to
capture the images and put them in boxes. Any ideas?  

 

 

load 'viewmat'

RGB=:0 255{~#:i.8

GRB=:1 0 2{"1 RGB 

RGB;GRB

GRB viewmat i.8

]A=:<.0.5*(i.8 8)+|:i.8 8

 GRB viewmat A

]B=:(i.8)<:/i.8

]C=:63*(i.8)>/i.8

GRB viewmat C+B*A

]E=:'MIX'

]F=:GRB viewmat i.8

]G=:GRB viewmat ,.i.8

]H=:GRB viewmat C+B*A

(E;F),:G;H

 

Linda

 

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to