Last active
July 20, 2020 14:21
-
-
Save formatc1702/3c93fb4c5e392364899283f78672b952 to your computer and use it in GitHub Desktop.
Auto-generate color documentation
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
import wv_colors | |
for k, v in wv_colors._color_hex.items(): | |
print(f'- `{k}` ![#{v}](https://via.placeholder.com/15/{v.replace("#","")}/000000?text=+) ({wv_colors._color_full[k]})') |
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
import wv_colors | |
color_code = 'DIN' | |
for i in range(10): | |
color = wv_colors._color_hex[wv_colors.COLOR_CODES[color_code][i]] | |
print(f' ![#{color}](https://via.placeholder.com/15/{color.replace("#","")}/000000?text=+)') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment