Skip to content

Commit

Permalink
Merge pull request #241 from JuliaGraphics/teh/distingRGB
Browse files Browse the repository at this point in the history
distinguishable_colors: restrict candidates to RGB-realizable colors
  • Loading branch information
timholy committed Dec 26, 2015
2 parents cd03f77 + 91ff692 commit 8f1f8c3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/colormaps.jl
Expand Up @@ -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
Expand Down

0 comments on commit 8f1f8c3

Please sign in to comment.