First public commit.

This commit is contained in:
The Dust Council 2026-07-03 19:35:35 -07:00
parent 2a48f52979
commit 4bac9d83ed
288 changed files with 18417 additions and 1076 deletions

View file

@ -0,0 +1,8 @@
"""BBC MODE 2: 160x256, 8-colour. 20K screen at &3000."""
from __future__ import annotations
from . import _common
WIDTH, HEIGHT = 160, 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="mode2", bbc_mode=2, ncol=8, bpp=4,
width=WIDTH, height=HEIGHT, base=0x3000, dither_mode=dither_mode)