You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -46,7 +46,7 @@ Adobe® Photoshop® has a variety of helpful [blend modes](http://help.adobe.com
46
46
The following blend modes work perfectly (or as nearly as the [vagaries of the HTML Canvas](http://stackoverflow.com/questions/4309364/why-does-html-canvas-getimagedata-not-return-the-exact-same-values-that-were-ju) allow):
47
47
48
48
*`normal` (or `src-over`)
49
-
*`screen`
49
+
*`screen`
50
50
*`multiply`
51
51
*`difference`
52
52
@@ -85,18 +85,57 @@ These blend modes mostly work as intended, but have issues when it comes to deal
85
85
86
86
## Requirements/Browser Support
87
87
88
-
Tested on Safari v5.0, Chrome v8, and FF v3.6. Should work on any user agent that supplies a
89
-
`CanvasRenderingContext2D` along with `getImageData` and `putImageData`.
88
+
Should work on any user agent that supplies a `CanvasRenderingContext2D` along with `getImageData` and `putImageData`.
89
+
90
+
This includes using the [`node-canvas`](https://github.com/Automattic/node-canvas) library under [Node.js](http://nodejs.org).
90
91
91
92
## About
92
93
93
94
This library was created around the need solely for a one-off 'screen' blend mode to match the company-mandated style for bar graphs used internally, previously only available via a Microsoft® Excel® template. Clearly this functionality is useful in more contexts than just my one-off, so I decided to make a framework around it and encourage others to help figure out the formulae. Please, fork this project, add blend modes and/or fix math, and send me pull requests! I feel certain that the resources must exist out there on the equations Photoshop uses in the presence of alpha, but so far I have not found them.
[PDF Blend Modes: Addendum (January 23, 2006)](http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/pdf_reference_archives/blend_modes.pdf) PDF
126
+
[SVG Compositing 1.2, Part 1: Primer](http://dev.w3.org/SVG/modules/compositing/master/SVGCompositingPrimer.html)
127
+
[Custom blend modes for Flash 10](http://www.lostinactionscript.com/blog/index.php/2009/05/26/custom-blend-modes-for-flash-10/) blog post
128
+
[Blend Modes in Delphi](http://www.pegtop.net/delphi/articles/blendmodes/) blog post
129
+
130
+
### License
131
+
132
+
This library is released under an MIT-style license. That generally means that you are free to do almost anything you want with it as long as you give a bit of credit where credit is due. See the LICENSE file included for the actual legal limitations.s and/or fix math, and send me pull requests! I feel certain that the resources must exist out there on the equations Photoshop uses in the presence of alpha, but so far I have not found them.
133
+
95
134
## Reference Material
96
-
[PDF Blend Modes: Addendum (January 23, 2006)](http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/pdf_reference_archives/blend_modes.pdf) PDF
97
-
[SVG Compositing 1.2, Part 1: Primer](http://dev.w3.org/SVG/modules/compositing/master/SVGCompositingPrimer.html)
98
-
[Custom blend modes for Flash 10](http://www.lostinactionscript.com/blog/index.php/2009/05/26/custom-blend-modes-for-flash-10/) blog post
99
-
[Blend Modes in Delphi](http://www.pegtop.net/delphi/articles/blendmodes/) blog post
135
+
[PDF Blend Modes: Addendum (January 23, 2006)](http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/pdf_reference_archives/blend_modes.pdf) PDF
136
+
[SVG Compositing 1.2, Part 1: Primer](http://dev.w3.org/SVG/modules/compositing/master/SVGCompositingPrimer.html)
137
+
[Custom blend modes for Flash 10](http://www.lostinactionscript.com/blog/index.php/2009/05/26/custom-blend-modes-for-flash-10/) blog post
138
+
[Blend Modes in Delphi](http://www.pegtop.net/delphi/articles/blendmodes/) blog post
0 commit comments