P5VRKGUWJYP25PPLTK4FXW3NTFNEFN35URSWWZ4TKJQIFXX56VQAC
on.update = function(dt)
local P = 60 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi/P
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"on.update":126,"parent":125,"Debug_state":39,"Night_blue":27,"Stars":120,"draw_debug":94,"on.draw":121}
on.update = function(dt)
local P = 600 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi/P
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"draw_debug":94,"on.draw":121,"on.update":125,"Debug_state":39,"Night_blue":27,"parent":124,"Stars":120}
on.update = function(dt)
local P = 10 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi/P
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"draw_debug":94,"on.draw":121,"on.update":124,"Debug_state":39,"Night_blue":27,"parent":123,"Stars":120}
on.update = function(dt)
local P = 60 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi/P
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"draw_debug":94,"on.draw":121,"on.update":123,"Debug_state":39,"Night_blue":27,"parent":122,"Stars":120}
on.update = function(dt)
local P = 600 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi/P
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"draw_debug":94,"on.draw":121,"on.update":122,"Debug_state":39,"Night_blue":27,"parent":121,"Stars":120}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800-400, y=love.math.random()*600-300, color=love.math.random(), radius=love.math.random()*3})
end
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Angle)
-- line(0,300,0,-300)
-- line(400,0,-400,0)
-- circ('fill', 100, 0, 4)
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":121,"on.update":113,"Stars":120,"parent":120}
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":119,"on.update":113,"Stars":120,"parent":119}
Stars = {}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800-400, y=love.math.random()*600-300, color=love.math.random(), radius=love.math.random()*3})
end
end
love.graphics.push()
-- love.graphics.translate(400,300)
love.graphics.rotate(Angle)
-- line(0,300,0,-300)
-- line(400,0,-400,0)
-- circ('fill', 100, 0, 4)
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":119,"on.update":113,"Stars":26,"parent":118}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800-400, y=love.math.random()*600-300, color=love.math.random(), radius=love.math.random()*3})
end
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Angle)
-- line(0,300,0,-300)
-- line(400,0,-400,0)
-- circ('fill', 100, 0, 4)
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":118,"on.update":113,"Stars":26,"parent":117}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800-400, y=love.math.random()*600-300, color=love.math.random(), radius=love.math.random()*3})
end
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Angle)
-- line(0,300,0,-300)
-- line(400,0,-400,0)
-- circ('fill', 100, 0, 4)
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":117,"on.update":113,"Stars":26,"parent":116}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
love.graphics.push()
-- love.graphics.translate(400,300)
love.graphics.rotate(Angle)
-- line(0,300,0,-300)
-- line(400,0,-400,0)
-- circ('fill', 100, 0, 4)
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":116,"on.update":113,"Stars":26,"parent":115}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Angle)
-- line(0,300,0,-300)
-- line(400,0,-400,0)
-- circ('fill', 100, 0, 4)
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":115,"on.update":113,"Stars":26,"parent":114}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Angle)
line(0,300,0,-300)
line(400,0,-400,0)
-- circ('fill', 100, 0, 4)
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":114,"on.update":113,"Stars":26,"parent":113}
on.update = function(dt)
local P = 60 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi/P
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":110,"on.update":113,"Stars":26,"parent":112}
on.update = function(dt)
local P = 60 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":110,"on.update":112,"Stars":26,"parent":111}
on.update = function(dt)
local P = 60 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":110,"on.update":111,"Stars":26,"parent":110}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Angle)
-- line(0,300,0,-300)
-- line(400,0,-400,0)
circ('fill', 100, 0, 4)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":110,"on.update":108,"Stars":26,"parent":109}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Angle)
line(0,300,0,-300)
line(400,0,-400,0)
circ('fill', 100, 0, 4)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":109,"on.update":108,"Stars":26,"parent":108}
on.update = function(dt)
local P = 6 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":107,"on.update":108,"Stars":26,"parent":107}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Night_blue*2*math.pi)
line(0,300,0,-300)
line(400,0,-400,0)
circ('fill', 100, 0, 4)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":107,"on.update":93,"Stars":26,"parent":106}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Night_blue*4*math.pi)
line(0,300,0,-300)
line(400,0,-400,0)
circ('fill', 100, 0, 4)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":106,"on.update":93,"Stars":26,"parent":105}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Night_blue*2*math.pi)
line(0,300,0,-300)
line(400,0,-400,0)
circ('fill', 100, 0, 4)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":105,"on.update":93,"Stars":26,"parent":104}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Night_blue*2*math.pi)
--line(0,300,0,-300)
--line(400,0,-400,0)
circ('fill', 100, 0, 4)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":104,"on.update":93,"Stars":26,"parent":103}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Night_blue*math.pi)
--line(0,300,0,-300)
--line(400,0,-400,0)
circ('fill', 100, 0, 4)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":103,"on.update":93,"Stars":26,"parent":102}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Night_blue*2*math.pi)
--line(0,300,0,-300)
--line(400,0,-400,0)
circ('fill', 100, 0, 4)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":102,"on.update":93,"Stars":26,"parent":101}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Night_blue*2*math.pi)
line(0,300,0,-300)
line(400,0,-400,0)
circ('fill', 100, 0, 4)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":101,"on.update":93,"Stars":26,"parent":100}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
line(0,300,0,-300)
line(400,0,-400,0)
circ('fill', 100, 0, 4)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":100,"on.update":93,"Stars":26,"parent":99}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
line(0,300,0,-300)
line(400,0,-400,0)
circ('fill', 100, 0, 2)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":99,"on.update":93,"Stars":26,"parent":98}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
line(0,300,0,-300)
line(400,0,-400,0)
circ('fill', 10, 0, 2)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":98,"on.update":93,"Stars":26,"parent":97}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
line(0,300,0,-300)
line(400,0,-400,0)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":97,"on.update":93,"Stars":26,"parent":96}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.push()
love.graphics.translate(400,300)
line(0,300,0,-300)
love.graphics.pop()
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":96,"on.update":93,"Stars":26,"parent":95}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":95,"on.update":93,"Stars":26,"parent":94}
{"Night_blue":27,"Debug_state":39,"draw_debug":94,"on.draw":88,"on.update":93,"Stars":26,"parent":93}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
for x,d in ipairs(Debug_state) do
--if x%100 == 0 then
--love.graphics.print(('%.2f'):format(d), x, d*600)
--else
circ('fill', x, d*600, 2)
--end
end
end
on.update = function(dt)
local P = 6 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Night_blue":27,"Debug_state":39,"draw_debug":91,"on.draw":88,"on.update":93,"Stars":26,"parent":92}
on.update = function(dt)
local P = 1 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Night_blue":27,"Debug_state":39,"draw_debug":91,"on.draw":88,"on.update":92,"Stars":26,"parent":91}
{"Night_blue":27,"Debug_state":39,"draw_debug":91,"on.draw":88,"on.update":89,"Stars":26,"parent":90}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
for x,d in ipairs(Debug_state) do
if x%100 == 0 then
love.graphics.print(('%.2f'):format(d), x, d*600)
else
circ('fill', x, d*600, 2)
end
end
end
{"Night_blue":27,"Debug_state":39,"draw_debug":90,"on.draw":88,"on.update":89,"Stars":26,"parent":89}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
for x,d in ipairs(Debug_state) do
if x%100 == 0 then
love.graphics.print(('%.2f'):format(d), x, d*600)
else
circ('fill', x, d*600, 2)
if d*600 > 590 then
line(x,0, x,600)
end
end
end
end
on.update = function(dt)
local P = 60 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Night_blue":27,"Debug_state":39,"draw_debug":67,"on.draw":88,"on.update":89,"Stars":26,"parent":88}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":67,"on.draw":88,"on.update":87,"Stars":26,"parent":87}
on.update = function(dt)
local P = 1 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Night_blue":27,"Debug_state":39,"draw_debug":67,"on.draw":85,"on.update":87,"Stars":26,"parent":86}
on.update = function(dt)
local P = 60 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Night_blue":27,"Debug_state":39,"draw_debug":67,"on.draw":85,"on.update":86,"Stars":26,"parent":85}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
--draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":67,"on.draw":85,"on.update":83,"Stars":26,"parent":84}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
draw_debug()
end
{"Night_blue":27,"Debug_state":39,"draw_debug":67,"on.draw":84,"on.update":83,"Stars":26,"parent":83}
on.update = function(dt)
local P = 1 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Night_blue":27,"Debug_state":39,"draw_debug":67,"on.draw":80,"on.update":83,"Stars":26,"parent":82}
on.update = function(dt)
local P = 10 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":81,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":80,"on.update":82}
on.update = function(dt)
local P = 10 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time))
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
-- t = 0.8
-- t = 0.9
-- t = 1.1 => Night_blue = (2-1.1) = 0.9
-- t = 1.2 => 2-1.2 = 0.8
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":80,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":80,"on.update":81}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
--draw_debug()
end
{"parent":79,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":80,"on.update":79}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time))
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
-- t = 0.8
-- t = 0.9
-- t = 1.1 => Night_blue = (2-1.1) = 0.9
-- t = 1.2 => 2-1.2 = 0.8
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":78,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":79}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time))
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= 1)
-- t = 0.8
-- t = 0.9
-- t = 1.1 => Night_blue = (2-1.1) = 0.9
-- t = 1.2 => 2-1.2 = 0.8
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":77,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":78}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time))
local t = (app.Current_time - math.floor(app.Current_time)/P*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= 1)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":76,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":77}
on.update = function(dt)
local P = 1 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time))
local t = (app.Current_time - math.floor(app.Current_time)/P*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= 1)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":75,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":76}
on.update = function(dt)
local P = 1 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time))
-- local t = (app.Current_time - math.floor(app.Current_time)/P*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= 1)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":74,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":75}
on.update = function(dt)
local P = 1 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time))
-- local t = (app.Current_time - math.floor(app.Current_time)/P*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= 1)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":73,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":74}
on.update = function(dt)
local P = 1 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
-- t is between 0 and P
assert(0 <= t)
assert(t <= 1)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":72,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":73}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
-- t is between 0 and P
assert(0 <= t)
assert(t <= 1)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":71,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":72}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
-- t is between 0 and P
assert(0 <= t)
assert(t <= 1)
if t > P/2 then
Night_blue = ((P-t)*2)/P
else
Night_blue = t/(P/2)
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":70,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":71}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
-- t is between 0 and P
assert(0 <= t)
assert(t <= 1)
if t > P/2 then
Night_blue = ((P-t)*2)/P
else
Night_blue = t*2/P
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":69,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":70}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
-- t is between 0 and P
assert(0 <= t)
assert(t <= 1)
if t > P/2 then
Night_blue = ((P-t)*2)/P
else
Night_blue = t*2/P
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":68,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":69}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
-- t is between 0 and P
assert(0 <= t)
assert(t <= 1)
if t > P/2 then
Night_blue = ((P-t)*2)/P
else
Night_blue = t*2/P
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":67,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":68}
{"parent":66,"Stars":26,"Night_blue":27,"draw_debug":67,"Debug_state":39,"on.draw":37,"on.update":63}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
love.graphics.print(#Debug_state, 700, 100)
for x,d in ipairs(Debug_state) do
if x%100 == 0 then
love.graphics.print(('%.2f'):format(d), x, d*600)
else
circ('fill', x, d*600, 2)
if d*600 > 590 then
line(x,0, x,600)
end
end
end
end
{"parent":65,"Stars":26,"Night_blue":27,"draw_debug":66,"Debug_state":39,"on.draw":37,"on.update":63}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
love.graphics.print(#Debug_state, 700, 100)
for x,d in ipairs(Debug_state) do
if x%100 == 0 then
love.graphics.print(('%.2f'):format(d), x, d*600)
else
circ('fill', x, d*600, 2)
if d*600 > 750 then
line(x,0, x,600)
end
end
end
end
{"parent":64,"Stars":26,"Night_blue":27,"draw_debug":65,"Debug_state":39,"on.draw":37,"on.update":63}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
love.graphics.print(#Debug_state, 700, 100)
for x,d in ipairs(Debug_state) do
if x%100 == 0 then
love.graphics.print(('%.2f'):format(d), x, d*600)
else
circ('fill', x, d*600, 2)
if d*600 > 790 then
line(x,0, x,600)
end
end
end
end
{"parent":63,"Stars":26,"Night_blue":27,"draw_debug":64,"Debug_state":39,"on.draw":37,"on.update":63}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
love.graphics.print(#Debug_state, 700, 100)
for x,d in ipairs(Debug_state) do
if x%100 == 0 then
love.graphics.print(('%.2f'):format(d), x, d*600)
else
circ('fill', x, d*600, 2)
if d*600 < 790 then
line(x,0, x,600)
end
end
end
end
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = ((P-t)*2)/P
else
Night_blue = t*2/P
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":62,"Stars":26,"Night_blue":27,"draw_debug":54,"Debug_state":39,"on.draw":37,"on.update":63}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = ((P-t)*2)/P
else
Night_blue = t*2
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":61,"Stars":26,"Night_blue":27,"draw_debug":54,"Debug_state":39,"on.draw":37,"on.update":62}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
-- t is between 0 and P
if t > 0.5*P then
Night_blue = ((P-t)*2)/P
else
Night_blue = t*2
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":60,"Stars":26,"Night_blue":27,"draw_debug":54,"Debug_state":39,"on.draw":37,"on.update":61}
on.update = function(dt)
local P = 1 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
-- t is between 0 and P
if t > 0.5*P then
Night_blue = ((P-t)*2)/P
else
Night_blue = t*2
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":59,"Stars":26,"Night_blue":27,"draw_debug":54,"Debug_state":39,"on.draw":37,"on.update":60}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
-- t is between 0 and P
if t > 0.5*P then
Night_blue = ((P-t)*2)/P
else
Night_blue = t*2
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":58,"Stars":26,"Night_blue":27,"draw_debug":54,"Debug_state":39,"on.draw":37,"on.update":59}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":57,"Stars":26,"Night_blue":27,"draw_debug":54,"Debug_state":39,"on.draw":37,"on.update":58}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
assert(0 >= t)
assert(t <= 1)
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":56,"Stars":26,"Night_blue":27,"draw_debug":54,"Debug_state":39,"on.draw":37,"on.update":57}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":55,"Stars":26,"Night_blue":27,"draw_debug":54,"Debug_state":39,"on.draw":37,"on.update":56}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":54,"Stars":26,"Night_blue":27,"draw_debug":54,"Debug_state":39,"on.draw":37,"on.update":55}
{"parent":53,"Stars":26,"Night_blue":27,"draw_debug":54,"Debug_state":39,"on.draw":37,"on.update":53}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
love.graphics.print(#Debug_state, 700, 100)
for x,d in ipairs(Debug_state) do
if x%100 == 0 then
love.graphics.print(('%.2f'):format(d), x, d*600)
else
circ('fill', x, d*600, 2)
end
end
end
on.update = function(dt)
local P = 1 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":52,"Stars":26,"Night_blue":27,"draw_debug":50,"Debug_state":39,"on.draw":37,"on.update":53}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":51,"Stars":26,"Night_blue":27,"draw_debug":50,"Debug_state":39,"on.draw":37,"on.update":52}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":50,"Stars":26,"Night_blue":27,"draw_debug":50,"Debug_state":39,"on.draw":37,"on.update":51}
{"parent":49,"Stars":26,"Night_blue":27,"draw_debug":50,"Debug_state":39,"on.draw":37,"on.update":47}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
for x,d in ipairs(Debug_state) do
if x%100 == 0 then
love.graphics.print(('%.2f'):format(d), x, d*600)
else
circ('fill', x, d*600, 2)
end
end
end
{"parent":48,"Stars":26,"Night_blue":27,"draw_debug":49,"Debug_state":39,"on.draw":37,"on.update":47}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
for x,d in ipairs(Debug_state) do
if x%100 == 0 then
love.graphics.print(d, x, d*600)
else
circ('fill', x, d*600, 2)
end
end
end
{"parent":47,"Stars":26,"Night_blue":27,"draw_debug":48,"Debug_state":39,"on.draw":37,"on.update":47}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
for x,d in ipairs(Debug_state) do
if x%100 == 0 then
love.graphics.print(x, x, d*600)
else
circ('fill', x, d*600, 2)
end
end
end
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":46,"Stars":26,"Night_blue":27,"draw_debug":42,"Debug_state":39,"on.draw":37,"on.update":47}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, t)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":45,"Stars":26,"Night_blue":27,"draw_debug":42,"Debug_state":39,"on.draw":37,"on.update":46}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":44,"Stars":26,"Night_blue":27,"draw_debug":42,"Debug_state":39,"on.draw":37,"on.update":45}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (P-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":43,"Stars":26,"Night_blue":27,"draw_debug":42,"Debug_state":39,"on.draw":37,"on.update":44}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":42,"Stars":26,"Night_blue":27,"draw_debug":42,"Debug_state":39,"on.draw":37,"on.update":43}
{"parent":40,"Stars":26,"Night_blue":27,"draw_debug":42,"Debug_state":39,"on.draw":37,"on.update":40}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
for x,d in ipairs(Debug_state) do
circ('fill', x, d*600, 2)
end
end
{"parent":40,"Stars":26,"Night_blue":27,"Debug_state":39,"draw_debug":41,"on.draw":37,"on.update":40}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
for x,d in ipairs(Debug_state) do
circ('fill', x, d*600, 2)
end
on.update = function(dt)
local P = 1 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"parent":39,"Stars":26,"Night_blue":27,"Debug_state":39,"draw_debug":38,"on.draw":37,"on.update":40}
{"parent":38,"Stars":26,"Night_blue":27,"Debug_state":39,"draw_debug":38,"on.draw":37,"on.update":35}
Debug_state = {}
{"draw_debug":38,"Night_blue":27,"on.draw":37,"Stars":26,"parent":37,"on.update":35}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
end
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
draw_debug()
end
{"draw_debug":36,"Night_blue":27,"on.draw":37,"Stars":26,"parent":36,"on.update":35}
{"draw_debug":36,"Night_blue":27,"on.draw":28,"Stars":26,"parent":35,"on.update":35}
draw_debug = function()
end
on.update = function(dt)
local P = 1 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
end
{"Night_blue":27,"on.draw":28,"Stars":26,"parent":34,"on.update":35}
on.update = function(dt)
local P = 4 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
end
{"Night_blue":27,"on.draw":28,"Stars":26,"parent":33,"on.update":34}
on.update = function(dt)
local P = 2 -- Period in seconds
local t = (app.Current_time - (math.floor(app.Current_time)/P*P))/P
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
end
{"Night_blue":27,"on.draw":28,"Stars":26,"parent":32,"on.update":33}
on.update = function(dt)
local t = app.Current_time - math.floor(app.Current_time)
if t > 0.5 then
Night_blue = (1-t)*2
else
Night_blue = t*2
end
end
{"Night_blue":27,"on.draw":28,"Stars":26,"parent":31,"on.update":32}
on.update = function(dt)
Night_blue = app.Current_time - math.floor(app.Current_time)
end
{"Night_blue":27,"on.draw":28,"Stars":26,"parent":30,"on.update":31}
{"Night_blue":27,"Stars":26,"parent":29,"on.draw":28}
{"Night_blue":27,"Stars":26,"parent":28,"Current_time":29,"on.draw":28}
Current_time = 0
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
end
{"Night_blue":27,"parent":27,"on.draw":28,"Stars":26}
{"Night_blue":27,"parent":26,"on.draw":23,"Stars":26}
Night_blue = 0.3
{"parent":25,"on.draw":23,"Stars":26}
Stars = {}
{"parent":24,"on.draw":23,"Stars":25}
Stars = {}
{"parent":23,"on.draw":23,"Stars":24}
Stars = {}
on.draw = function()
love.graphics.clear(0,0,0.3)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
end
{"on.draw":23,"parent":22,"Stars":22}
{"on.draw":21,"parent":21,"Stars":22}
Stars = {}
on.draw = function()
love.graphics.clear(0,0,0.5)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*3})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
end
{"on.draw":21,"parent":20,"Stars":18}
on.draw = function()
love.graphics.clear(0,0,0.5)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*4})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
end
{"on.draw":20,"parent":19,"Stars":18}
on.draw = function()
love.graphics.clear(0,0,0.6)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*4})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
end
{"on.draw":19,"parent":18,"Stars":18}
{"on.draw":17,"parent":17,"Stars":18}
Stars = {}
on.draw = function()
love.graphics.clear(0,0,0.8)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*4})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
end
{"on.draw":17,"parent":16,"Stars":16}
{"on.draw":15,"parent":15,"Stars":16}
Stars = {}
on.draw = function()
love.graphics.clear(0,0,0.8)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600, color=love.math.random(), radius=love.math.random()*2})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
end
{"on.draw":15,"parent":14,"Stars":11}
on.draw = function()
love.graphics.clear(0,0,0.7)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(1,1,0)
love.graphics.circle('fill', star.x,star.y, 4)
end
end
{"on.draw":14,"parent":12,"Stars":11}
on.draw = function()
love.graphics.clear(0,0,0.7)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800, y=love.math.random()*600})
end
end
for _,star in ipairs(Stars) do
love.graphics.setColor(1,1,0)
love.graphics.circle('fill', star.x,star.y, 4)
end
end
end
{"on.draw":13,"parent":12,"Stars":11}
on.draw = function()
love.graphics.clear(0,0,0.7)
if #Stars == 0 then
for i=1,100 do
love.graphics.setColor(1,1,0)
love.graphics.circle('fill', love.math.random()*800, love.math.random()*600, 4)
end
end
end
{"on.draw":12,"parent":11,"Stars":11}
{"on.draw":10,"parent":10,"Stars":11}
Stars = {}
on.draw = function()
love.graphics.clear(0,0,0.7)
for i=1,100 do
love.graphics.setColor(1,1,0)
love.graphics.circle('fill', love.math.random()*800, love.math.random()*600, 4)
end
end
{"on.draw":10,"parent":9}
on.draw = function()
love.graphics.clear(0,0,0.7)
for i=1,100 do
love.graphics.setColor(1,1,0)
love.graphics.circle('fill', love.math.random(), love.math.random(), 4)
end
end
{"on.draw":9,"parent":8}
on.draw = function()
love.graphics.clear(0,0,0.7)
for i=1,100 do
love.graphics.setColor(1,1,0)
love.graphics.circle(love.math.random(), love.math.random(), 4)
end
end
{"on.draw":8,"parent":7}
on.draw = function()
love.graphics.clear(0,0,0.7)
end
{"on.draw":7,"parent":6}
on.draw = function()
love.graphics.clear(0,0,0.9)
end
{"on.draw":6,"parent":5}
on.draw = function()
love.graphics.clear(0,0,0.7)
end
{"on.draw":5,"parent":4}
on.draw = function()
love.graphics.clear(0,0,0.6)
end
{"on.draw":4,"parent":3}
on.draw = function()
love.graphics.clear(0,0,0.5)
end
{"on.draw":3,"parent":2}
on.draw = function()
love.graphics.clear(0.2,0.2,1)
end
{"on.draw":2,"parent":1}
on.draw = function()
love.graphics.clear(0,0,1)
end
{"on.draw":1,"parent":0}