fix hgr-to-png converter and images

This commit is contained in:
Zellyn Hunter 2018-05-20 20:18:19 -04:00
parent 10ebce5d65
commit 8025edc4da
8 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ func run(args []string) error {
paletted.Set(x0+2*b, y, c)
paletted.Set(x0+2*b+1, y, c)
}
// Draw an extra dot so delayed patterns can "extend" the last value.
if val&0x80 == 0 && val&0x40 > 0 {
paletted.Set(x0+2*7, y, color.White)
}
}
f, err := os.Create(args[1])

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB