diff --git a/hsv.png b/hsv.png index ce5df9b..839bcc1 100644 Binary files a/hsv.png and b/hsv.png differ diff --git a/hsv.py b/hsv.py index 9dfccd2..5ef389c 100644 --- a/hsv.py +++ b/hsv.py @@ -8,7 +8,7 @@ if __name__ == "__main__": rgb_tensor, _ = extract_colors() xkcd_rgb = rgb_tensor.numpy() xkcd_hsv = rgb_to_hsv(xkcd_rgb) - plot_preds(xkcd_hsv[:, 0], fname="hsv") + plot_preds(xkcd_hsv[:, 0], fname="hsv", roll=True) rgb = np.eye(3) print("Pure RGB in Hue-Space:") print(rgb_to_hsv(rgb)[:, 0]) diff --git a/out/index.html b/out/index.html index fbc1891..1f580c3 100644 --- a/out/index.html +++ b/out/index.html @@ -73,7 +73,12 @@ var gallery = document.getElementById('gallery'); for (var i = 0; i < 100; i++) { // Changed from i <= 100 to i < 100 - let imageName = 'v' + i + '.png'; + let imageName; + if (i == 21) { + imageName = 'hsv.png'; + } else { + imageName = 'v' + i + '.png'; + } let img = document.createElement('img'); img.src = imageName; img.onerror = function () { this.style.display = 'none'; };