A set of 120 weather based svg icons.
render-pngs.sh script will render png's from the
icons.svg file by looping over the content of the
index.txt file. Only objects whoes id's are inside the
index.txt file will be rendered.
The script requires Inkscape and sed.
You can provide an icon size (single number). If you skip it, the icons default dimensions will be used.
You can provide an icon color. If you skip it, the default color will be used.
The script doesn't overwrite files. Delete the file you want to overwrite before executing the script.
If you change the icon color swatch in the
icons.svgfile, update the
default_colorvariable inside the
render-pngsscript, otherwise the script won't be able to change the png color during rendering.
Since inkscape doesn't have artboards, the
icon.svg file provides pseudo-artboard support by grouping each icon with a rectangle, which represents the icon's canvas (32x32 in this set.)
The groups are given id's which represent the name of the exported png.
Color swatches are provided in the
icons.svgfile for easily changing the icon and grid colors as well as for hiding the icon-canvas rectangles before exporting.