i'm adding sprite bitmap inside stage, change blendmode screen. nothing happens on html5 targets while on flash works fine... openfl wiki says "available on platforms" (link)
am doing wrong?
here code im using:
var sp:sprite = new sprite(); sp.graphics.beginfill(0xff0000, 1); sp.graphics.drawcircle(200, 200, 100); sp.graphics.endfill(); addchild(sp); var bmd:bitmapdata = assets.getbitmapdata("img/1.jpg"); var b:bitmap = new bitmap(bmd); b.blendmode = blendmode.screen; addchild(b); imporets are:
import openfl.assets; import openfl.display.bitmapdata; import openfl.display.bitmap; import openfl.display.blendmode; import openfl.display.sprite; flash target:

html5 target:

as far know, html5 canvas doesn't have blendmode support, html5 webgl does. try compiling lime test html5 -dwebgl
Comments
Post a Comment