8 lines
459 B
Python
8 lines
459 B
Python
"""BBC MODE 1: 320x256, 4-colour (best 4 of 8). 20K screen at &3000."""
|
|
from __future__ import annotations
|
|
from . import _common
|
|
WIDTH, HEIGHT = 320, 256
|
|
PIXEL_ASPECT = (4 / 3) / (WIDTH / HEIGHT)
|
|
def convert(img_rgb, palette_name="bbc", dither_mode="floyd", intensive=False, base_color=None):
|
|
return _common.build(img_rgb, mode="mode1", bbc_mode=1, ncol=4, bpp=2,
|
|
width=WIDTH, height=HEIGHT, base=0x3000, dither_mode=dither_mode)
|