Implement --background-color (#1508)

Co-authored-by: Rangi42 <sylvie.oukaour+rangi42@gmail.com>
This commit is contained in:
Eldred Habert
2025-05-02 05:39:52 +02:00
committed by GitHub
parent 56f7222230
commit 8cf6c5423a
29 changed files with 167 additions and 54 deletions

3
test/gfx/bg_fuse.err Normal file
View File

@@ -0,0 +1,3 @@
warning: Fusing colors #a9b9c9ff and #aabbccff into Game Boy color $66f5 [first seen at x: 1, y: 1]
FATAL: Tile (0, 0) contains the background color (#aabbccff)!
Conversion aborted after 1 error

1
test/gfx/bg_fuse.flags Normal file
View File

@@ -0,0 +1 @@
-B #aBc

BIN
test/gfx/bg_fuse.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

2
test/gfx/bg_in_tile.err Normal file
View File

@@ -0,0 +1,2 @@
FATAL: Tile (16, 0) contains the background color (#ffd800ff)!
Conversion aborted after 1 error

View File

@@ -0,0 +1 @@
-B #ffd800

BIN
test/gfx/bg_in_tile.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

1
test/gfx/bg_oval.flags Normal file
View File

@@ -0,0 +1 @@
-B #FF00ff

BIN
test/gfx/bg_oval.out.2bpp Normal file

Binary file not shown.

Binary file not shown.

BIN
test/gfx/bg_oval.out.pal Normal file

Binary file not shown.

Binary file not shown.

BIN
test/gfx/bg_oval.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 B

View File

@@ -0,0 +1,4 @@
-B #fff
-i input_tileset_with_bg.in.2bpp
-c gbc:input_tileset_with_bg.in.pal
-u

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

View File

@@ -0,0 +1,2 @@
FATAL: Tile (16, 0) contains the background color (#00000000)!
Conversion aborted after 1 error

View File

@@ -0,0 +1 @@
-B transparent

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B