8x8 patterns for SDK

Hi.
I'm adding support for the SDK pattern fill, to the 8x8.me collection.

Something like this:

-- headers
local gfx <const> = playdate.graphics

local skullXL <const> = {
    0x00,  -- ▓▓▓▓▓▓▓▓
    0x7C,  -- ▓░░░░░▓▓
    0xFE,  -- ░░░░░░░▓
    0xFE,  -- ░░░░░░░▓
    0x92,  -- ░▓▓░▓▓░▓
    0xEE,  -- ░░░▓░░░▓
    0x7C,  -- ▓░░░░░▓▓
    0x54,  -- ▓░▓░▓░▓▓
    -- 0,124,254,254,146,238,124,84 -- transparent background 
    -- 255,131,1,1,109,17,131,171 -- transparent foreground 
}
-- gfx.setPattern(skullXL)

I'd love to get feedback either here or on the GitHub issue. Cheers :slight_smile:

1 Like

Update: Finished converting all patterns to playdate.lua SDK format. :partying_face:
Massive thanks to @matt for prompting this work. Excited to see who will be the first to use these!

Happy holidays everyone! :gift:

2 Likes