diff options
Diffstat (limited to 'sourcecodes/bnt-master/KPMtools/hsvKPM.m')
| -rw-r--r-- | sourcecodes/bnt-master/KPMtools/hsvKPM.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sourcecodes/bnt-master/KPMtools/hsvKPM.m b/sourcecodes/bnt-master/KPMtools/hsvKPM.m new file mode 100644 index 00000000..29521ae5 --- /dev/null +++ b/sourcecodes/bnt-master/KPMtools/hsvKPM.m @@ -0,0 +1,7 @@ +function colors = hsvKPM(N) +% hsvKPM Like built-in HSV, except it randomizes the order, so that adjacent colors are dis-similar +% function colors = hsvKPM(N) + +colors = hsv(N); +perm = randperm(N); +colors = colors(perm,:); |
