Opened 9 years ago

#39 new defect

Better docs for mixColors

Reported by: Ben Lippmeier Owned by:
Priority: normal Milestone: 1.8.0
Component: Unknown Version: 1.7.0
Keywords: Cc:

Description

From the list:

The named tertiary Colors are defined using addColors. For example, orange = addColors yellow red. That gives unexpected results. For example, orange == yellow is True. A more expected result would be if the Colors were mixed in equal ratios. For example: orange = mixColors 0.5 0.5 yellow red

Yeah, it's saturating addition, which is still associative and commutative. I think this is a legitimate operation with respect to physical displays, though perhaps it needs a different name.

The way I think about "addColors yellow red" is "turn on all the lights to make yellow, and all the lights to make red" .. which still gives you yellow.

Change History (0)

Note: See TracTickets for help on using tickets.