Pixel Art


#1

Hi
I have a unicornHatHD which I love and I would love want to use it to display some pixel art. Please could some one point me in the right direction for creating my own 16x16 pixel art and saving it in the correct format to use with the unicornHatHD

Thanks


#2

Any graphics package that can save out a PNG image file would suffice. Then this example will display that file: https://github.com/pimoroni/unicorn-hat/blob/master/examples/hat/show_png.py

If you’re already comfortable with an editor, use that and save out as a 24bit PNG. Otherwise you could give GIMP a try since it’s free and will run on more or less anything: https://www.gimp.org/


#3

Thanks for that. I have found a great app that I can use to make the art works well.

On another note I have gotten one 16x16 png image showing on the Unicorn HAT HD, by editing the show_png.py example which works well. However, I want to incorporate showing the image with a button push and so want to be able to code showing the image in the most basic way possible. I know the show_png.py file has code for interating though a matrix of pixel art. I am having trouble simplyfing it down any help would be greatly appreciated.

Thanks


#4

I’ve answered over in your other post: Unicorn HAT HD story project