Skip to content

Commit

Permalink
Update colors.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed May 1, 2015
1 parent a361e4d commit 6e30d47
Show file tree
Hide file tree
Showing 2 changed files with 3,224 additions and 1,690 deletions.
2 changes: 2 additions & 0 deletions autogenerating-colors.txt
Expand Up @@ -87,10 +87,12 @@ while read -r p; do
shift
if [[ ! $1 == "#" && ! $1 == "" ]]; then
echo $1 `python /path/to/avgcolor.py $(find /path/to/minetest/directory/ -type f -name $2)`
echo $1 1>&2
fi
done < nodes.txt > colors.txt
# Use nicer colors for water and lava
sed -re 's/^default:water_([a-z]+) [0-9 ]+$/default:water_\1 39 66 106 128 224/' < colors.txt > tmp$$ && mv tmp$$ colors.txt
sed -re 's/^default:river_water_([a-z]+) [0-9 ]+$/default:water_\1 39 66 106 128 224/' < colors.txt > tmp$$ && mv tmp$$ colors.txt
sed -re 's/^default:lava_([a-z]+) [0-9 ]+$/default:lava_\1 255 100 0/' < colors.txt > tmp$$ && mv tmp$$ colors.txt
sed -re 's/^default:([a-z_]*)glass ([0-9 ]+)$/default:\1glass \2 64 16/' < colors.txt > tmp$$ && mv tmp$$ colors.txt
==INSTRUCTIONS==
Expand Down

0 comments on commit 6e30d47

Please sign in to comment.