diff --git a/dither.py b/convert.py similarity index 95% rename from dither.py rename to convert.py index 8666abf..3005bd5 100644 --- a/dither.py +++ b/convert.py @@ -5,7 +5,7 @@ import time from PIL import Image import numpy as np -import dither_apply +import dither as dither_pyx import dither_pattern import image as image_py import palette as palette_py @@ -39,7 +39,7 @@ def main(): dither = dither_pattern.JarvisDither() start = time.time() - output_4bit, output_rgb = dither_apply.dither_image( + output_4bit, output_rgb = dither_pyx.dither_image( screen, image, dither, lookahead=args.lookahead) print(time.time() - start) screen.pack(output_4bit) diff --git a/dither_apply.pyx b/dither.pyx similarity index 100% rename from dither_apply.pyx rename to dither.pyx diff --git a/setup.py b/setup.py index 19d8b0f..1090d0b 100644 --- a/setup.py +++ b/setup.py @@ -5,5 +5,5 @@ import Cython.Compiler.Options Cython.Compiler.Options.annotate = True setup( - ext_modules=cythonize(["dither_apply.pyx"], annotate=True) + ext_modules=cythonize(["dither.pyx"], annotate=True) )