Hilbert curve: Difference between revisions

m
Line 420:
-- Or's characters for ASCII line drawing
function charor(c1, c2)
local bits={ [" "]=00x0, ["┌"]=0x3, ["│"]=0x5, ["└"]=0x6, ["├"]=0x7, ["┐"]=0x9,
["┐"]=0x9, ["─"]=0xa, ["┬"]=0xb, ["┘"]=0xc, ["┤"]=0xd, ["┴"]=0xe, ["┼"]=0xf,}
["┴"]=0xe, ["┼"]=0xf,}
local char={" ", " ", " ", "┌", " ", "│", "└", "├", " ", "┐", "─", "┬", "┘", "┤", "┴", "┼",}
local b1,b2=bits[c1] or 0,bits[c2] or 0