4 ms·
I implemented some of these blending modes in JavaScript once upon a time, if anyone is curious: https://github.com/shazow/colorlib/blob/master/colorlib.js#L169
by shazow 13y ago
I implemented some of these blending modes in JavaScript once upon a time, if anyone is curious: https://github.com/shazow/colorlib/blob/master/colorlib.js#L169 https://github.com/shazow/colorlib/blob/master/colorlib.js#L...
Based on the source code of GIMP and a bit of reverse engineering from Photoshop's behaviour (there were inconsistencies).
This is used in http://colorblendy.com/ http://colorblendy.com/.
- adamnemecek 13y agoThanks, a bunch. This was actually the very thing I was looking for when I found this. I was trying to figure out the math myself but just about every website has no code or the code is incomplete/wrong.
- shazow 13y agoThat was my experience as well. Happy to help! :)
- camus2 13y agoNice lib ! will be quite usefull on my next pet project ,thanks ! that's why I love HN , one always find very smart folks that share bits of work.
- akx 13y ago(Most of) the rest are available here (not my code, just code I've used): https://github.com/Phrogz/context-blender/blob/master/context_blender.js https://github.com/Phrogz/context-blender/blob/master/contex...