a327ex / windfield

Physics module for LÖVE
453 stars 55 forks source link

Add optional alpha value to world:draw() #8

Closed Skeletonxf closed 7 years ago

Skeletonxf commented 7 years ago

This commit adds an optional alpha value to world:draw() so it can be drawn with transparency, and defaults to 255 if given no arguments drawing completely opaque as it did before this commit.

davisdude commented 7 years ago

I don't think that the alpha value should persist past the draw call (see line 108). Instead of alpha it should be 255.

Skeletonxf commented 7 years ago

That is a very good point, I'll make the graphics stay as it is from before the draw call. I figure it would be less confusing if the rgb values also stay as before the draw call.