Whitespace

This commit is contained in:
kris
2023-01-28 15:26:13 +00:00
parent 6573bad509
commit 1b08a8f1b1
3 changed files with 10 additions and 8 deletions

View File

@@ -57,6 +57,7 @@ def convert(screen: screen_py.DHGRNTSCScreen, image: Image, args):
_output(out_image, args)
_write(screen, bitmap, args)
def convert_mono(screen: screen_py.DHGRScreen, image: Image, args):
image = image.convert("1")

View File

@@ -46,5 +46,6 @@ def resize(
else:
return res
def resize_mono(image: Image, x_res, y_res) -> Image:
return image.resize((x_res, y_res), Image.LANCZOS)

View File

@@ -1,6 +1,5 @@
"""Representation of Apple II screen memory."""
import math
import numpy as np
import palette as palette_py
@@ -111,6 +110,7 @@ class DHGRScreen:
self.main[addr:addr + 40] = main_col[y, :]
return
class DHGRNTSCScreen(DHGRScreen):
def __init__(self, palette: palette_py.Palette):
self.palette = palette