Topic: Firefox globalCompositeOperation (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=32030" title="Pages that link to Topic: Firefox globalCompositeOperation (Page 1 of 1)" rel="nofollow" >Topic: Firefox globalCompositeOperation <span class="small">(Page 1 of 1)</span>\

 
Kyle the Feared
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jan 2009

posted posted 10-21-2010 22:05

I'm trying to use some transparent PNGs and the globalCompositeOperation and came across a few instances where Firefox fails to render anything.

http://jsdo.it/kylethefeared/goKO
All of these appear to work fine in Chrome or Opera (although lighter and darker give slightly different results).

I'm actually looking to use either source-in or destination-in (either would work for my purposes).
I don't suppose there's a workaround to achieve the same thing with the various other composite operations that do work?

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 10-22-2010 11:27

FYI for some obscure reasons I still fail to understand, darker was removed from the HTML5 Canvas spec months ago. Another thing I don't understand is why Webkit keep supporting this operation without a vendor prefix.

No, there's no short workaround to achieve source-in or destination-in. These operations are pretty basic, and emulating them with say a xor of the xor and source-over or destination-over would be crazy scaffolding for no reason.

coach
Nervous Wreck (II) Inmate

From:
Insane since: May 2011

posted posted 05-31-2011 10:59
Edit TP: spam removed


Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu