Recently I've come across quite a sophisticated question about color blending. It's already three years old, and for some reason it has comparatively many upvotes. I posted my own answer to it, and right after that I found that there is another question from the same author that was asked 30 minutes after the first (Oct 27 2015 at 0:35 vs Oct 27 2015 at 0:57).
I tend to think that they both were asked within the same problem, and my answer should help for both cases, so I'd like to mark second question as a duplicate of first. However I cannot be certain about that because the original question is somewhat vague and doesn't have the same amount of details as the second one. The author himself doesn't seem to be any more interested in it, since a lot of time passed and he logged in the last time more than a year and a half ago, so I don't believe he will ever accept my answer. However writing this answer took me quite a lot of effort, and I would like to point people to my findings somehow.