First public commit.
This commit is contained in:
parent
2a48f52979
commit
4bac9d83ed
288 changed files with 18417 additions and 1076 deletions
9
lenser/bbc/convert/mode0.py
Normal file
9
lenser/bbc/convert/mode0.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
"""BBC MODE 0: 640x256, 2-colour (black & white). 20K screen at &3000."""
|
||||
from __future__ import annotations
|
||||
from . import _common
|
||||
WIDTH, HEIGHT = 640, 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="mode0", bbc_mode=0, ncol=2, bpp=1,
|
||||
width=WIDTH, height=HEIGHT, base=0x3000,
|
||||
dither_mode=dither_mode, mono=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue