Skip to content

Instantly share code, notes, and snippets.

@dacap
Created October 31, 2018 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacap/283baef00fcfd2bf5d09c8e8074179aa to your computer and use it in GitHub Desktop.
Save dacap/283baef00fcfd2bf5d09c8e8074179aa to your computer and use it in GitHub Desktop.
local s = Sprite(32, 32, ColorMode.INDEXED)
local p = Palette(32)
local function setc(i,r,g,b) p:setColor(i, Color{r=r, g=g, b=b}) end
setc(0, 0, 0, 0)
setc(1, 34, 32, 52)
setc(2, 69, 40, 60)
setc(3,102, 57, 49)
setc(4,143, 86, 59)
setc(5,223, 113, 38)
setc(6,217, 160, 102)
setc(7,238, 195, 154)
setc(8,251, 242, 54)
setc(9,153, 229, 80)
setc(10,106, 190, 48)
setc(11, 55, 148, 110)
setc(12, 75, 105, 47)
setc(13, 82, 75, 36)
setc(14, 50, 60, 57)
setc(15, 63, 63, 116)
setc(16, 48, 96, 130)
setc(17, 91, 110, 225)
setc(18, 99, 155, 255)
setc(19, 95, 205, 228)
setc(20,203, 219, 252)
setc(21,255, 255, 255)
setc(22,155, 173, 183)
setc(23,132, 126, 135)
setc(24,105, 106, 106)
setc(25, 89, 86, 82)
setc(26,118, 66, 138)
setc(27,172, 50, 50)
setc(28,217, 87, 99)
setc(29,215, 123, 186)
setc(30,143, 151, 74)
setc(31,138, 111, 48)
s:setPalette(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment