added color sliders, increased window size and removed window scale

This commit is contained in:
Mango 2025-09-05 21:51:51 -07:00
commit 77310ccdc5
3 changed files with 60 additions and 31 deletions

View file

@ -1,4 +1,4 @@
local Object = require "classic"
local Object = require "classic"
local Button = Object:extend()
function Button:new(x, y, r, b, c)
@ -6,8 +6,8 @@ function Button:new(x, y, r, b, c)
self.y = y
self.r = r
self.b = b
self.c = c or {1, 1, 1}
self.press = false
self.c = c
end
function Button:update(dt)
@ -30,7 +30,7 @@ function Button:draw()
if self.press then
love.graphics.setColor(self.c)
else
love.graphics.setColor(100/255, 100/255, 100/255)
love.graphics.setColor(75/255, 75/255, 75/255)
end
love.graphics.circle("fill", self.x + self.r, self.y + self.r, self.r+1)