examples: Add assets and conversion script for bg8bit example

This commit is contained in:
Antonio Niño Díaz 2023-05-13 14:12:36 +01:00
parent 7a22d51d4d
commit f91699ea96
15 changed files with 400 additions and 368 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 MiB

View File

@ -0,0 +1,9 @@
Link: https://unsplash.com/photos/qtRF_RxCAo0
Author: Aldebaran S
License: Unsplash
Newton, MA
Published on January 10, 2021
WOGT71/ZWO, 60+ frames, ASI1600mm pro
North American and Pelican nebulae mosaic

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 MiB

View File

@ -0,0 +1,7 @@
Link: https://unsplash.com/photos/oQl0eVYd_n8
Author: Joseph Barrientos
License: Unsplash
Tel Aviv-Yafo, Israel
Published on August 12, 2015
SONY, ILCE-7

View File

@ -1,2 +1,22 @@
#!/bin/sh
grit img8b_3.jpg -gb -gB8 -ftb
# The two backgrounds that share the palette have been edited to use 128 colors
# each, so that the final combined palette is 256 colors in size.
grit img8b_1.png img8b_2.png -ftb -fh! -gTFF00FF -gb -gB8 -pS -Oimg8b_1.pal
# This image has been edited so that it uses 255 colors and the last one is
# free. That way we can set it to red manually and paint using it.
grit img8b_3.png -ftb -fh! -gTFF00FF -gb -gB8
for file in *.bin; do
mv -- "$file" "${file%.bin}"
done
# This is required or the library will say that the second background doesn't
# have a palette.
cp img8b_1.pal img8b_2.pal
mv *.pal *.img ../nitrofiles/bmp

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long