Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Corry committed Feb 29, 2024
1 parent cb1ec78 commit 192622c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 0 additions & 6 deletions tests/bitmap-2-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ main args:
heater-translucent := file.read-content "tests/third_party/pictogrammers/heater-translucent.png"
heater-translucent-uncompressed := file.read-content "tests/third_party/pictogrammers/heater-translucent-uncompressed.png"

swap-red-and-black := :: | r/int g/int b/int a/int |
if r > 0x80:
#[0, 0, 0, a]
else:
#[0xff, 0, 0, a]

display.add (Png --x=16 --y=32 --png-file=heater)
display.add (Png --x=100 --y=32 --png-file=heater-4-bit)
display.add (Png --x=184 --y=32 --png-file=heater-2-bit)
Expand Down
5 changes: 1 addition & 4 deletions tests/png-visualizer.toit
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,6 @@ byte-swap_ ba/ByteArray -> ByteArray:

class SwapRedAndBlack implements png.PaletteTransformer:
transform palette/ByteArray -> none:
if palette[0] >= 0x80:
palette[0] = 0
else:
palette[0] = 0xff
palette[0] = (palette[0] >= 0x80) ? 0 : 0xff
palette[1] = 0
palette[2] = 0

0 comments on commit 192622c

Please sign in to comment.