fredsa / forplay

Automatically exported from code.google.com/p/forplay
Apache License 2.0
12 stars 4 forks source link

Layers need alpha parameters for rendering #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Layers need a float alpha value to control transparency. As noted in issue 23, 
this is useful for splash screen cross-fades and particle effects (amongst 
other things).

Original issue reported on code.google.com by m...@gri.pe on 28 May 2011 at 5:28

GoogleCodeExporter commented 9 years ago
Agreed. General porter-duff compositing of layers would be even better.

Original comment by jgw@google.com on 3 Jun 2011 at 1:58

GoogleCodeExporter commented 9 years ago
Agreed. +1 to porter duff

Original comment by matt...@mastracci.com on 3 Jun 2011 at 2:02

GoogleCodeExporter commented 9 years ago
+1 ! In the meantime, is there currently any way to draw a layer with a global 
alpha value ? My Splashscreen is begging for that ;-) (sorry for the newbie 
question, maybe I missed some doc ?)

Original comment by py.ricau on 4 Jun 2011 at 1:52

GoogleCodeExporter commented 9 years ago
Nope, you didn't miss any doc (other than the TODO sitting in the Layer 
javadoc...). We should start with basic alpha, then worry about other 
compositing modes, since alpha is by far the most important.

Original comment by jgw@google.com on 5 Jun 2011 at 2:55

GoogleCodeExporter commented 9 years ago
Here's a first pass at the alpha parameter for layers:
http://forplay-code-reviews.appspot.com/9005/

Original comment by pdr@google.com on 9 Jun 2011 at 12:04

GoogleCodeExporter commented 9 years ago
Fixed! http://code.google.com/p/forplay/source/detail?r=184

Original comment by pdr@google.com on 15 Jun 2011 at 9:43