Last active
June 5, 2025 01:41
-
-
Save smmr0/21244efee1c02d57bbd88472c36fdd85 to your computer and use it in GitHub Desktop.
OpenMoji: U+2600
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- https://github.com/hfg-gmuend/openmoji/blob/15.1.0/color/svg/2600.svg --> | |
| <svg id="emoji" viewBox="5 5 61.9823 61.9823" xmlns="http://www.w3.org/2000/svg"> | |
| <g id="color"> | |
| <polygon fill="#FCEA2B" stroke="none" points="66,36 55.3235,41.1816 61.9819,51.0063 50.1418,50.1424 51.0056,61.9823 41.1813,55.3236 36,66 30.8184,55.3235 20.9937,61.9819 21.8576,50.1418 10.0177,51.0056 16.6764,41.1813 6,36 16.6765,30.8184 10.0181,20.9937 21.8582,21.8576 20.9944,10.0177 30.8187,16.6764 36,6 41.1816,16.6765 51.0063,10.0181 50.1424,21.8582 61.9823,20.9944 55.3236,30.8187"/> | |
| </g> | |
| <g id="line"> | |
| <circle cx="36" cy="35.95" r="19.8276" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2"/> | |
| <polygon fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" points="66,36 55.3235,41.1816 61.9819,51.0063 50.1418,50.1424 51.0056,61.9823 41.1813,55.3236 36,66 30.8184,55.3235 20.9937,61.9819 21.8576,50.1418 10.0177,51.0056 16.6764,41.1813 6,36 16.6765,30.8184 10.0181,20.9937 21.8582,21.8576 20.9944,10.0177 30.8187,16.6764 36,6 41.1816,16.6765 51.0063,10.0181 50.1424,21.8582 61.9823,20.9944 55.3236,30.8187"/> | |
| </g> | |
| </svg> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| set -euf | |
| script_dir="$(dirname "$(readlink -e -- "$0")")" # https://stackoverflow.com/a/29835459/16330198 | |
| default_input_f="$script_dir/2600.svg" | |
| is_integer() { | |
| string="$1" | |
| # https://stackoverflow.com/a/3951175 | |
| case "$string" in | |
| ''|*[!0-9]*) | |
| return 1 | |
| ;; | |
| *) | |
| return 0 | |
| ;; | |
| esac | |
| } | |
| if is_integer "$1"; then | |
| input_f="$default_input_f" | |
| else | |
| input_f="$1"; shift | |
| fi | |
| width="$1"; shift | |
| if [ -n "${1-}" ]; then | |
| output_f="$1"; shift | |
| else | |
| output_f="$(basename "$input_f" '.svg')-$width.png" | |
| fi | |
| rsvg-convert --width="$width" "$input_f" --output="$output_f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment