mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-06 16:02:04 +00:00
Lint
This commit is contained in:
parent
3903c70035
commit
ac5b0d8a9a
@ -95,7 +95,6 @@ def painter_make_font_image(cli):
|
|||||||
print(f"Writing {cli.args.output} ...")
|
print(f"Writing {cli.args.output} ...")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@cli.argument('-i', '--input', help='Specify input graphic file.')
|
@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('-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.')
|
@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.')
|
||||||
|
@ -17,8 +17,9 @@ def o24(i):
|
|||||||
return o16(i & 0xFFFF) + o8((i & 0xFF0000) >> 16)
|
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):
|
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)
|
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))
|
return (int(hsv[0] * 255.0), int(hsv[1] * 255.0), int(hsv[2] * 255.0))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user