Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 1.20.1 colors #96

Merged
merged 2 commits into from
Jul 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# `mcmap` - Isometric map visualizer

![](https://img.shields.io/badge/version-1.16.5-success) ![](https://img.shields.io/badge/version-1.17-success) ![](https://img.shields.io/badge/version-1.18.1-success)
![](https://img.shields.io/badge/version-1.16.5-success)
![](https://img.shields.io/badge/version-1.17-success)
![](https://img.shields.io/badge/version-1.18.1-success)
![](https://img.shields.io/badge/version-1.19.4-success)
![](https://img.shields.io/badge/version-1.20.1-success)

*Original project by Simon Rettberg. All the credit goes to him for the idea and vision.*

Expand Down
9 changes: 7 additions & 2 deletions scripts/average.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

# Requires ImageMagick
# Outputs the color average of the image passed as an argument

echo -ne "`basename "$1"`\t"
convert "$1" -resize 1x1 txt:- | grep -Po "#[[:xdigit:]]{6}" | tr A-F a-f
set -eo pipefail

printf '%s\t%s\n' \
"$(basename "${1}")" \
"$(convert "${1}" -resize 1x1 txt:- | grep -Po "#[[:xdigit:]]{6}" | tr A-F a-f)"
Loading