JuliaAttic / Color.jl

Basic color manipulation utilities.
Other
47 stars 21 forks source link

sequential_palette DomainError in invB in invBezier #72

Closed cormullion closed 3 years ago

cormullion commented 9 years ago

Some values for hue don't work with this function. Here's 104, for example:

julia> sequential_palette(104, 40; c=0.88, s=0.9, b=0.15, w=0.15, d=0.0, wcolor=RGB(1,0,0),    dcolor=RGB(0,0,1), logscale=false)

ERROR: DomainError
 in invB at /Users/me/.julia/v0.3/Color/src/utilities.jl:76
 in invBezier at /Users/me/.julia/v0.3/Color/src/utilities.jl:82
 in sequential_palette at /Users/me/.julia/v0.3/Color/src/colormaps.jl:161

but other numbers such as 120 are OK.

julia 0.3.2 and Color 0.3.12