This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- main.lua | |
| local function createColorIndices(sprite, cel) | |
| local colorToIndex = {} -- Maps color values to indices | |
| local nextIndex = 0 -- Next available index | |
| -- First pass: assign indices to unique colors | |
| local img = cel.image | |
| for pixel in img:pixels() do | |
| local colorValue = pixel() | |
| if app.pixelColor.rgbaA(colorValue) > 0 then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <header> | |
| <nav kiosk-nav="true"> | |
| <div class="logo"></div> | |
| <div class="options"> | |
| <div class="option shuttle selected"> | |
| <div class="container"> | |
| <div class="box"> | |
| <figure class="front"></figure> | |
| <figure class="back"></figure> | |
| <figure class="right"></figure> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <header> | |
| <nav kiosk-nav="true"> | |
| <div class="logo"></div> | |
| <div class="options"> | |
| <div class="option shuttle selected"> | |
| <div class="container"> | |
| <div class="box"> | |
| <figure class="front"></figure> | |
| <figure class="back"></figure> | |
| <figure class="right"></figure> |