]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_lamp/commitdiff
lamp: draw-happy: blank the framebuffer first
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Wed, 23 Nov 2016 00:47:32 +0000 (19:47 -0500)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Wed, 23 Nov 2016 00:47:32 +0000 (19:47 -0500)
draw-happy.lua

index bbadccef4627cfb04eaa3b724dabc41c201d35e7..8e4178704504142a2be97799d5b8c02a72fd83ca 100644 (file)
@@ -8,5 +8,6 @@
 return function(t,fb,g,r,b)
   local c = string.char(g,r,b)
   local i,v
+  fb:fill(0,0,0)
   for i,v in ipairs({2,7,9,11,14,16,28,29}) do fb:set(v,c) end
 end