Created
October 25, 2016 13:57
-
-
Save kr-stn/805a09481b9093a1127104239c6de291 to your computer and use it in GitHub Desktop.
Generate 5000 randomly colored QML styles for display of segmentation results.
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 random | |
for value in range(5000): | |
print("<item alpha=\"255\" value=\"{}\" label=\"{}\" color=\"#{}\"/>".format(value, value, hex(random.randint(0, 16777215))[2:].upper())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment