split color functions

This commit is contained in:
mango 2025-09-05 11:55:39 -07:00
commit d2f7af607a
2 changed files with 15 additions and 15 deletions

View file

@ -28,11 +28,11 @@ end
function Button:draw()
if self.press then
self.c = {151/255, 109/255, 209/255}
love.graphics.setColor(self.c)
else
self.c = {100/255, 100/255, 100/255}
love.graphics.setColor(100/255, 100/255, 100/255)
end
love.graphics.setColor(self.c)
love.graphics.circle("fill", self.x + self.r, self.y + self.r, self.r+1)
love.graphics.setColor(1,1,1)
love.graphics.circle("line", self.x + self.r, self.y+self.r, self.r+1)