Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - improve the image editor usage #590

Open
nadi726 opened this issue Dec 27, 2024 · 3 comments
Open

Feature Request - improve the image editor usage #590

nadi726 opened this issue Dec 27, 2024 · 3 comments

Comments

@nadi726
Copy link

nadi726 commented Dec 27, 2024

I find the pixel editor mostly fine for my (limited) uses so far, but I think a couple of things could make it much better:

  1. Import and Export images
    Sometimes I want to export my work over to a different program. There doesn't seem to be a way to do that - the ctrl+c shortcut doesn't copy to the clipboard, only inside the program. There is no export option in-editor, and trying to look at the data inside reveals something that is not an image file (There's probably some way to convert that to an image file, but it would either require some coding or is not clear enough).
    Also, maybe I should open a separate bug report, but dragging an image file into the editor doesn't seem to work for me. This means that the graphics is essentially secluded from other tools and resources - including even another pyxel resources file - which is inconvenient to say the least.

  2. Draw with the keyboard
    Considering how most stuff in the Pyxel editor can be done using only the keyboard, it would be nice to have the option to draw using the keyboard as well. Some stuff in the image editor can already be done with a keyboard, like selecting a color, but it doesn't seem to have to option to actually draw using the keyboard.

  3. Changing the color palette should be clearer

    • It took me a while of digging around in the README and FAQ to find how to create a palette file - it should be easier to find.
    • Having a way to change the palette inside Pyxel editor can be more convenient, although not necessary (I'd place it at a much lower priority over the other stuff I'd like to see implemented)
@merwok
Copy link
Contributor

merwok commented Dec 27, 2024

FWIW I’ve used this code to export easily:

def main():
    update, draw = init()
    px.run(update, draw)


def dump(pyxres):
    px.init(1, 1)
    px.load(pyxres)
    px.image(0).save('tiles0.png', 1)
    px.image(1).save('tiles1.png', 1)
    px.image(2).save('tiles2.png', 1)


if __name__ == '__main__':
    if sys.argv[1:] == ['dump']:
        dump('_rpg.pyxres')
    else:
        main()

@kitao
Copy link
Owner

kitao commented Dec 29, 2024

Regarding exporting the image banks, you can use Pyxel's shortcuts.

Shift+Alt(Option)+1/2/3: Save image bank 0, 1, or 2 to the desktop
Shift+Alt(Option)+0: Save the current color palette to the desktop

@nadi726
Copy link
Author

nadi726 commented Dec 30, 2024

Huh. Neat. Didn't notice that, my bad. I still think it should be more obvious though...
(Also regarding the "import by drag and drop" not working - it works now, so I probably just did something wrong before)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants