From 2b300708519b3ba186d2141f3707d4521f59354b Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Mon, 3 Jun 2024 11:49:21 -0700 Subject: [PATCH] Remove colorizer.py in reference to the last commit Signed-off-by: Alek Ratzloff --- colorhash/colorizer.py | 13 ------- examples/commithash.svg | 80 ++++++++++++++++++++--------------------- 2 files changed, 40 insertions(+), 53 deletions(-) delete mode 100644 colorhash/colorizer.py diff --git a/colorhash/colorizer.py b/colorhash/colorizer.py deleted file mode 100644 index 94f6413..0000000 --- a/colorhash/colorizer.py +++ /dev/null @@ -1,13 +0,0 @@ -"All things that turn a numeric matrix into a colored matrix." -from typing import Sequence - -from .color import Color -from .matricizer import Matrix -from .palettes import Palette - - -ColorMatrix = Sequence[Sequence[Color]] - - -def colorize(palette: Palette, matrix: Matrix) -> ColorMatrix: - return [[palette[v] for v in row] for row in matrix] diff --git a/examples/commithash.svg b/examples/commithash.svg index 4abdc34..2ea0503 100644 --- a/examples/commithash.svg +++ b/examples/commithash.svg @@ -1,42 +1,42 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file