feat(drawable): apply opacity.
This commit is contained in:
parent
4a84d2dc53
commit
959fd99ba4
1 changed files with 2 additions and 0 deletions
|
@ -23,7 +23,9 @@ function DrawableElement:parseOrigin(origin, size)
|
|||
end
|
||||
|
||||
function DrawableElement:draw()
|
||||
love.graphics.setColor(1, 1, 1, self.opacity)
|
||||
love.graphics.draw(self.drawable, self.x,self.y,self.r,self.sx,self.sy,self.ox,self.oy)
|
||||
love.graphics.setColor(1, 1, 1, 1)
|
||||
end
|
||||
|
||||
return DrawableElement
|
Loading…
Reference in a new issue