-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checking in icons is not super pretty git practice, but when rendering through GitHub, that's the easiest option
- Loading branch information
Showing
8 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SPDX-License-Identifier: CC-BY-3.0 | ||
SPDX-License-CopyrightText: delapouite | ||
Original file from https://game-icons.net/1x1/delapouite/keyboard.html |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SPDX-License-Identifier: CC-BY-3.0 | ||
SPDX-License-CopyrightText: lorc | ||
Original file from https://game-icons.net/1x1/lorc/circuitry.html |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SPDX-License-Identifier: CC-BY-3.0 | ||
SPDX-FileCopyrightText: lorc | ||
Original file from https://game-icons.net/1x1/lorc/jigsaw-piece.html |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env python3 | ||
# SPDX-License-Identifier: CC0-1.0 | ||
# SPDX-FileCopyrightText: chrysn <[email protected]> | ||
# /// script | ||
# dependencies = ["cairosvg"] | ||
# /// | ||
|
||
import urllib.request | ||
import cairosvg | ||
|
||
game_icons = { | ||
"board": ("lorc", "circuitry"), | ||
"app": ("delapouite", "keyboard"), | ||
"module": ("lorc", "jigsaw-piece"), | ||
} | ||
|
||
for (outname, (author, iconname)) in game_icons.items(): | ||
svg = urllib.request.urlopen(f"https://game-icons.net/icons/ffffff/000000/1x1/{author}/{iconname}.svg").read() | ||
outname = outname + ".png" | ||
cairosvg.svg2png(bytestring=svg, write_to=outname, output_width=20, output_height=20) | ||
with open(outname + ".license", "w") as licensefile: | ||
print("SPDX-License-Identifier: CC-BY-3.0", file=licensefile) | ||
print(f"SPDX-License-CopyrightText: {author}", file=licensefile) | ||
print(f"Original file from https://game-icons.net/1x1/{author}/{iconname}.html", file=licensefile) |
This file contains 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