Mike, I think your scripts are very enlightening. I am enjoying trying to better understand them. Thank you very much for your work here.
I thought I would try to better understand the issue of some viewmat numbers being over 255. And although I see yours are all limited to 255, I thought I would better understand the issue by studying the nouns AB, CD and their resulting nouns, so I created the globals R, S, and T in msc, as shown below. But to my surprise the resulting arrays contain all zeroes in my experiments. Could you please comment? msc=:mysquarecolours =: 3 : 0 : nsteps =. x 'A B C D'=. y lamda =. (,:~-.)@:(%~ i.@>:) nsteps R=: AB =. lamda +/@:(*/"1) A,:B NB. mix colours between corners A & B S=: CD =. lamda +/@:(*/"1) D,:C NB. mix colours between corners C & D 1 0 2 |: <.T=: 255 * lamda +/@:(*/"1) AB,:CD NB.|: 'cos I got order wrong! ) I am also puzzled over the rotations you mention relative to net #6 faces. Could you say more about that, please? Btw, I will mention 2 peculiarities I noticed. Why name bacK, k instead of b? Why refer to Red as R, instead of Rear as R? But unfortunately, as you can deduce, the depth of my understanding is limited to such "peculiarities". <grin> -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
