Skip to content

Instantly share code, notes, and snippets.

@formatc1702
Last active July 20, 2020 14:21
Show Gist options
  • Save formatc1702/3c93fb4c5e392364899283f78672b952 to your computer and use it in GitHub Desktop.
Save formatc1702/3c93fb4c5e392364899283f78672b952 to your computer and use it in GitHub Desktop.
Auto-generate color documentation
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]})')
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