color argument to collections

(R,G,B).float_tuple -> floats in the 0...1 range

    > (R,G,B).int_tuple -> floats in the 0..255 range.

My worry here is that it is pretty common to do something like

  red = 1,0,0

which in your system would be interpreted as a int tuple and hence in
the 0..255 range. It may be easier for people to divide by 255.0 when
they have vals in the 0..255 range than it is for them to remember to
use ints and float consistently.

JDH

Sure, your call. Safety above convenience is a good overall mantra.

Cheers,

f

···

On 5/21/06, John Hunter <jdhunter@...5...> wrote:

    > (R,G,B).float_tuple -> floats in the 0...1 range
    > (R,G,B).int_tuple -> floats in the 0..255 range.

My worry here is that it is pretty common to do something like

  red = 1,0,0

which in your system would be interpreted as a int tuple and hence in
the 0..255 range. It may be easier for people to divide by 255.0 when
they have vals in the 0..255 range than it is for them to remember to
use ints and float consistently.