Closed climech closed 3 years ago
@climech I love this work, awesome job! The square flags look amazing and I'm actually wondering if we shouldn't consider documenting in the README how they can be used directly. Maybe even have a couple more gallery pages displaying a square and a rounded-corners variants of the flags. But that can remain for a different PR. 🙂
@HatScripts I believe the branch renaming retargeted all open PRs (which would be just this one) from master
to main
, and the deletion of main
as discussed in #20 then closed all open PRs targeting that branch (again, just this one was affected). Sorry for suggesting that course of action myself! 😳
I suppose it might be possible to manually retarget the PR towards gh-pages
, either by you or by @climech (or both). If not, the PR would have to be recreated.
(This request depends on the other one fixing color-bleeding issues. Check it out first before reading this! Big thanks for making this awesome icon set, BTW!)
Add build script and source files
This adds
scripts/build.js
and asrc/
directory containing the "base" unmasked icons from which the builds are generated. Theflags/
directory becomes the location for the default build, preserving backward compatibility.Building/contributing instructions were added to
README.md
.Purpose
Features
At the moment the script can apply a circular/rounded rect mask, allowing the radius to be customized. It uses a
<circle>
as the mask shape whenCORNER_RADIUS
is set to50%
(default), otherwise<rect>
is used.The script could be extended in the future, e.g. by making it possible to use a custom palette to replace the default one.
Dependencies
The script adds 2
devDependencies
topackage.json
:Usage
Default build (all flags):
Selected flags only:
Customized build with a 25% corner radius:
Recognized environment variables: