picotron is in early alpha -- it doesn't seem to have a sprite editor yet but it does support sprites in a particular format, so I threw together this quick-and-dirty aseprite exporter. hopefully this exporter will be obsolete soon!
requirements
you'll need Aseprite to use this.
this script is Windows-only, because of the io.popen('clip' ... str)
-- "clip" is a windows executable. but you can replace that with print(str)
and manually press ctrl-c on the popup window and it should work (don't close the popup afterwards or you'll need to re-open the script)
how to use
- save this script to your aseprite scripts folder (File > Scripts > Open Scripts Folder) then reopen aseprite (or rescan scripts)
- load an image with the picotron palette (or pico-8 extended palette)
- change the image's color mode to "indexed" (Sprite > Color Mode > Indexed)
- launch this script, press "copy" to copy to clipboard.
- if there is a current selection, it will only copy that region
- leave the script window open to copy again later
- see the picotron alpha release notes for info on how to use the string in your clipboard. it should looks something like
[gfx]08080000000000000000000000000700707007777007717177700777777000607070[/gfx]
how does it work
it converts pixels into picotron's gfx format: "[gfx]", 2-char hex width, 2-char hex height, WxH chars of color data, "[\gfx]".
the color data is "extended hexadecimal", i.e. 0=>"0", ... 15=>"f", 16=>"g", ... 31=>"v"
pico8
you can use this for pico8 too; just copy and you can to paste directly into the pico8 sprite editor. note that it will likely only work with the first 16 colors