Set blendmode to draw strokes?

I looked a little and think that the answer to my question is "no", but here goes:

With Javascript and a canvas tag, I can draw beautifully alpha mixed blended lines with stroke().

This is fun, but I would like to take it one step further by setting a blendmode for the stroke.
for example, it looks like classic src * (alpha) + dst * (1 - alpha), and I would like something like src + dst to get an additive mix.

This page: http://www.andersriggelsen.dk/OpenGL seems to be mixing in half, which I would really like to avoid.

+5
source share
2

" ", - Canvas HTML5, :

  • source-atop
  • source-in
  • source-out
  • source-over
  • destination-atop
  • destination-in
  • destination-out
  • destination-over
  • lighter
  • darker ( )
  • xor
  • copy

. . /, , .

, blender , ( ) , Photoshop, , () - . , , . - ( ) , .

, - "screen" "add".:)

+6

All Articles