fredsa / playn

Cross platform game library for N≥4 platforms
0 stars 1 forks source link

Additive blending #138

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Purpose of code changes on this branch:
The Canvas.Composite enum includes the Porter-Duff blend modes but doesn't 
include additive blending, which is easily implemented on various platforms.

When reviewing my code changes, please focus on:
The attached patch implements additive blending and adds one test.
- Implemented and tested on:
    - HTML
    - Java
    - Android
- Implemented, but not tested:
    - iOS
- Not implemented:
    - Flash (setCompositeOperation is a no-op, and I didn't change it.)
- Added one more test in CanvasTest in "Tests Metaproject"

Original issue reported on code.google.com by brack...@gmail.com on 17 Feb 2012 at 7:52

Attachments: