Jump to content

Alpha image loose color


YouGroove
 Share

Recommended Posts

The image is not colored when it is drawn on screen.

 

Here is my PostRender code :

 

if self.drawAttack then
 context:SetBlendMode(Blend.Alpha)
 local posX = math.floor((context:GetWidth() - self.imageAttack:GetWidth()))/2
 local posY = math.floor((context:GetHeight() - self.imageAttack:GetHeight()))/2
 context:DrawImage(self.imageAttack, posX, posY)
 context:SetBlendMode(Blend.Solid)
end

post-3271-0-84719100-1445023364_thumb.jpg

Stop toying and make games

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...