"""CoCo monochrome -- PMODE 4's 256x192 black & white, exposed as the standard ``mono`` mode for cross-platform parity (tone carried by dithering).""" from __future__ import annotations from . import pmode4 WIDTH, HEIGHT, PIXEL_ASPECT = pmode4.WIDTH, pmode4.HEIGHT, pmode4.PIXEL_ASPECT def convert(img_rgb, palette_name="mc6847", dither_mode="floyd", intensive=False, base_color=None): conv = pmode4.convert(img_rgb, palette_name, dither_mode, intensive, base_color=base_color) conv.mode = "mono" return conv