On 09/16/2011 02:20 AM, David Gowers (kampu) wrote:
In GEGL, the layer mode code is autogenerated from formula strings -- see operations/generated/math.rb Well, I know that in "Normal" mode, I have in each RGB channel: Composite=Over*alpha+Under(1-alpha) (assuming "Under" is fully opaque), but in Subtract mode, I would have several possibilities Composite=Under(1-alpha)-Over*alpha or Composite=Under(1-alpha)+(1-Over)*alpha or Composite=Under(1-alpha)+(1-Over*alpha) and $deity knows what else. math.rb isn't taking the opacity in account (but is an interesting read...) Thx. |
_______________________________________________ Gimp-developer mailing list Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer