Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("litpix.lua")
- sym = litpix.createSymbol({
- {1,1,0,0,1,1},
- {1,1,0,0,1,1},
- {1,1,2,2,1,1},
- {1,1,3,3,1,1},
- {0,1,3,3,1,0},
- {0,0,3,3,0,0},
- {0,0,3,3,0,0},
- {0,1,3,3,1,0},
- {1,1,3,3,1,1},
- {1,1,2,2,1,1},
- {1,1,0,0,1,1},
- {1,1,0,0,1,1}
- })
- pal = litpix.createPallete({colors.gray, colors.lightGray, colors.white})
- function render()
- litpix.push()
- litpix.setBackgroundColor(colors.lightBlue)
- litpix.clear()
- litpix.drawLine(2, 24, 50, 24, colors.gray)
- litpix.drawLine(3, 24, 49, 24, colors.white)
- litpix.drawRect(3, 25, 49, 40, colors.red)
- litpix.drawRect(4, 25, 48, 40, colors.orange, true)
- litpix.drawSymbol(4, 12, sym, pal)
- litpix.drawSymbol(4, 1, sym, pal)
- litpix.drawSymbol(43, 12, sym, pal)
- litpix.drawSymbol(43, 1, sym, pal)
- litpix.pop()
- end
- render()
- sleep(10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement