From 91ff69268ce76df47b129dc0a11462b79d9660e2 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Wed, 23 Dec 2015 09:00:21 -0600 Subject: [PATCH] distinguishable_colors: restrict candidates to RGB-realizable colors --- src/colormaps.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/colormaps.jl b/src/colormaps.jl index 4a023f57..591c30b7 100644 --- a/src/colormaps.jl +++ b/src/colormaps.jl @@ -45,9 +45,8 @@ function distinguishable_colors{T<:Color}(n::Integer, candidate = Array(Lab{Float64}, N) j = 0 for h in hchoices, c in cchoices, l in lchoices - candidate[j+=1] = LCHab(l, c, h) - # rgb = convert(RGB, LCHab(l, c, h)) - # candidate[j+=1] = convert(LCHab, rgb) + rgb = convert(RGB, LCHab(l, c, h)) + candidate[j+=1] = convert(LCHab, rgb) end # Transformed colors