First public commit.
This commit is contained in:
parent
2a48f52979
commit
4bac9d83ed
288 changed files with 18417 additions and 1076 deletions
16
lenser/atari/convert/mono.py
Normal file
16
lenser/atari/convert/mono.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
"""Atari monochrome -- GR.9's 16 luminance shades, exposed as the standard
|
||||
``mono`` mode for cross-platform parity. Greyscale by default; ``--mono-base``
|
||||
tints it to one of the GTIA hues (16 real shades of that hue)."""
|
||||
from __future__ import annotations
|
||||
|
||||
from . import gr9
|
||||
|
||||
WIDTH, HEIGHT, PIXEL_ASPECT = gr9.WIDTH, gr9.HEIGHT, gr9.PIXEL_ASPECT
|
||||
|
||||
|
||||
def convert(img_rgb, palette_name="ntsc", dither_mode="floyd",
|
||||
intensive=False, base_color=None):
|
||||
conv = gr9.convert(img_rgb, palette_name, dither_mode, intensive,
|
||||
base_color=base_color)
|
||||
conv.mode = "mono"
|
||||
return conv
|
||||
Loading…
Add table
Add a link
Reference in a new issue