21 lines
398 B
Lua
21 lines
398 B
Lua
luacolors = require "luacolors"
|
|
curves = 0
|
|
|
|
function love.load()
|
|
end
|
|
|
|
function love.update(dt)
|
|
curves = curves + 1
|
|
end
|
|
|
|
function love.draw()
|
|
love.graphics.setBackgroundColor(1, 1, 1)
|
|
|
|
r,g,b = luacolors.HSLtoRGB(curves, 1, 1)
|
|
print(r, g, b)
|
|
love.graphics.setColor(r, g, b, 1)
|
|
for i=0, curves do
|
|
love.graphics.arc("line", "open", i*5, 300, 100, 0, i/100*6.28)
|
|
end
|
|
end
|