First public commit.
This commit is contained in:
parent
2a48f52979
commit
4bac9d83ed
288 changed files with 18417 additions and 1076 deletions
8
lenser/bbc/convert/mode5.py
Normal file
8
lenser/bbc/convert/mode5.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
"""BBC MODE 5: 160x256, 4-colour (best 4 of 8). 10K screen at &5800 (fits a ROM)."""
|
||||
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="mode5", bbc_mode=5, ncol=4, bpp=2,
|
||||
width=WIDTH, height=HEIGHT, base=0x5800, dither_mode=dither_mode)
|
||||
Loading…
Add table
Add a link
Reference in a new issue