Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Rungo73

Wondering if and how to implement image blend modes like multiply ,
add etc?

1 decade ago by Graphikos

You can do some composite stuff with Canvas2D context..

http://tutorials.jenkov.com/html5-canvas/composition.html
https://developer.mozilla.org/samples/canvas-tutorial/6_1_canvas_composite.html

1 decade ago by Krisjet

I've used globalCompositeOperation in games before, just change it in the entitys draw function before you call this.parent, and then change it back after. Take note though, that not all browsers interpret the spec in the same way, so test your game in firefox, chrome, safari, ie and opera to see that it works as it should.

1 decade ago by tharshan09

Here is a plugin for multiply.
https://github.com/deakster/impact-imageblender

Here is the official forum post:
http://impactjs.com/forums/code/image-blender-tint-blend-your-images-client-side-using-any-color
Page 1 of 1
« first « previous next › last »