FosterFramework / Foster

A small C# game framework
MIT License
435 stars 38 forks source link

A transparency bug that occurs when using an Aseprite file with multiple layers. #28

Closed cerealpxl closed 11 months ago

cerealpxl commented 11 months ago

Hello I loaded an aseprite file into the project and used Aseprite.RenderAllFrames() method in the same way as in the TinyLink sample but the file i used had multiple layers and the transparency was buggy.

transparency bug

MrBrixican commented 11 months ago

Image.CopyPixels(Image source, in RectInt sourceRect, Point2? destination, Func<Color, Color, Color>? blend = null) seems to be wrong. blend is unused.

NoelFB commented 11 months ago

Good find! Should be fixed in 9a60fd0, looks like I had a typo and forgot to pass the parameter through.

cerealpxl commented 11 months ago

It's working! image