GFXP - useful lib & tool for working with patterns

How about an option for readable pattern definition code? More about this method here https://devforum.play.date/t/matts-prototypes/826/4?u=matt

-- binary string to number
function b(e) return tonumber(e, 2) end

pattern = {	--  diagonal lines
	b('11110000'),
	b('11100001'),
	b('11000011'),
	b('10000111'),
	b('00001111'),
	b('00011110'),
	b('00111100'),
	b('01111000'),
}
1 Like