diff --git a/colorhash/__main__.py b/colorhash/__main__.py index 2e8e6d7..41fe48c 100644 --- a/colorhash/__main__.py +++ b/colorhash/__main__.py @@ -2,5 +2,5 @@ from .cli import cli_main -if __name__ == '__main__': +if __name__ == "__main__": cli_main() diff --git a/colorhash/cli.py b/colorhash/cli.py index 9c613c2..a737211 100644 --- a/colorhash/cli.py +++ b/colorhash/cli.py @@ -14,7 +14,6 @@ from .writer import ANSIWriter, SVGWriter, Writer # TODO - option to add a caption based on the filename (for SVG) # TODO - load palettes from a file # TODO - PNG output -# TODO - fix Matricizer.choose_dimensions - either get rid of it or use it def cli_main() -> None: diff --git a/colorhash/writer.py b/colorhash/writer.py index 1ad365b..a4e22d1 100644 --- a/colorhash/writer.py +++ b/colorhash/writer.py @@ -26,6 +26,7 @@ class ANSIWriter(Writer): """ ANSI terminal writer. This will output a 24-bit true color string. """ + def write(self, matrix: ColorMatrix) -> str: """ Write the color matrix to an ANSI string. @@ -55,6 +56,7 @@ class SVGWriter(Writer): """ SVG string writer. """ + def __init__(self, square_size: int) -> None: """ Create a new SVG writer that uses the given square size. diff --git a/examples/commithash.svg b/examples/commithash.svg index ef223ed..0fe8dc8 100644 --- a/examples/commithash.svg +++ b/examples/commithash.svg @@ -1,42 +1,42 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file