This commit is contained in:
elpekenin 2024-02-18 10:02:50 +01:00
parent 3903c70035
commit ac5b0d8a9a
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,6 @@ def painter_make_font_image(cli):
print(f"Writing {cli.args.output} ...")
@cli.argument('-i', '--input', help='Specify input graphic file.')
@cli.argument('-o', '--output', default='', help='Specify output directory. Defaults to same directory as input.')
@cli.argument('-n', '--no-ascii', arg_only=True, action='store_true', help='Disables output of the full ASCII character set (0x20..0x7E), exporting only the glyphs specified.')

View File

@ -17,8 +17,9 @@ def o24(i):
return o16(i & 0xFFFF) + o8((i & 0xFF0000) >> 16)
# Helper to convert from RGB888 to the QMK "dialect" of HSV888
def rgb888_to_qmk_hsv888(e):
"""Helper to convert from RGB888 to the QMK "dialect" of HSV888
"""
hsv = rgb_to_hsv(e[0] / 255.0, e[1] / 255.0, e[2] / 255.0)
return (int(hsv[0] * 255.0), int(hsv[1] * 255.0), int(hsv[2] * 255.0))