Skip to content

Instantly share code, notes, and snippets.

@dacap
Created December 12, 2023 00:57
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/bc0fbb9e434b4fc48fa0a32844bccd7b to your computer and use it in GitHub Desktop.
Save dacap/bc0fbb9e434b4fc48fa0a32844bccd7b to your computer and use it in GitHub Desktop.
Open as RGB
local oldSprite = app.sprite
app.command.OpenFile()
if oldSprite ~= app.sprite then
app.command.ChangePixelFormat{ format="rgb" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment