I've just put my stuff for drawing any of the 11 nets in arbitrary
colours up on my google drive folder.  I think this is the link
https://drive.google.com/folderview?id=0B0saFta7n5wobk9za0QtZVVEM2M&usp=sharing
but I might well have got something wrong, so please tell
me nicely what has gone pear-shaped, rather than T-shaped.

If the link DOES work,  you should be in a folder called
cube containing one script called newcube.ijs,  with the
main verb also called newcube.  There are several comments,
including examples of how to produce a coloured layout.
I think this is intriguing, interesting, etc etc:
   (30, ?11) newcube 9?9

... 31 x 31 facets on each face,
   random net,
   random colours
    (including random filler, albeit with 2 black).


It's still a bit restrictive,  in that you're stuck with only one
orientation for each of the eleven nets.  My representations,
for these, with string arrays using mnemonics t,f,... for
TOP,FRONT etc, are extensible, however;  making it less
restrictive is then just a matter of working out what
face-rotations are needed for any (valid) user-specified
layout.  I'll think about that.

Thanks,

Mike

On 02/07/2015 09:03, Mike Day wrote:
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



---
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

Reply via email to