Update grawkit

reuse pallete (except black which is reserved for master)
This commit is contained in:
Liviu Seniuc 2018-10-24 16:14:17 +03:00 committed by GitHub
parent 852a796f4a
commit bfb175ec05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -443,7 +443,9 @@ END {
# Print color scheme definitions for branches.
for (i = 0; i < len["branches"]; i++) {
printf ".branch-" normalize(branches[i,"name"]) " {"
printf "stroke: " pallete[i + 1] "; fill: " pallete[i + 1] "}\n"
#reuse pallete (except black which is reserved for master)
p = (i - 1) % (length(pallete) - 1) + 2
printf "stroke: " pallete[p] "; fill: " pallete[p] "}\n"
}
print "]]></style>"