local g = grid.connect()
local gcap = require 'GridCapture/GridCapture'
function init()
g:all(0)
g:refresh()
gcap:set_grid(g)
end
function g.key(x,y,z)
g:led(x,y,15)
g:refresh()
end
function key(n,z)
if n == 2 then
gcap:record(24, 5, 'home/we/image.gif')
elseif n == 3 then
gcap:screenshot('home/we/screenshot.png')
end
end
This looks great! My only thought is the yellow is a bit hard to read, something with a little more weight to it might help legibility. Maybe #fff03e or #fff139 if you’re going with yellow?
Yes, it’s hard to replicate the glow of the real thing. I think I’ll go with a more visible yellow as a default. Maybe I could make the colors settable.
GridCaptyure:set_colors(args)
Then I could have a table of themes, that could be unpacked for the args.
Actually, yes! I was planning to officially release it when I roll grid capture into, but I haven’t touched it in a while. You can get it on github here. It makes use of the clock and the screenshot function that @kbra mentions.