Mix two non-opaque colors with “hue” blend mode
问题 I want to implement color blending as described in the W3C compositing and blending spec. (I'm doing this in JavaScript but the language shouldn't really matter for solving my problem.) In retrospect: During the implementation of the answer to this question I realized that this would probably make for a pretty nice standalone package. In case you're interested you can grab it from npm. It worked out pretty well so far but I wanted to take these algorithms a step further and add support for