Skip to content

Commit

Permalink
Update to the latest version of Colorfy.jl (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliascarv authored Nov 26, 2024
1 parent 0d3ef92 commit 7b63dc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
[compat]
Bessels = "0.2"
CircularArrays = "1.3"
Colorfy = "1.0"
Colorfy = "1.1"
CoordRefSystems = "0.16"
DelaunayTriangulation = "1.0"
Distances = "0.10"
Expand Down
7 changes: 1 addition & 6 deletions ext/colors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
# ------------------------------------------------------------------

# preprocess colors provided by user
function process(values::AbstractVector, colorscheme, colorrange, alphas)
valphas = isnothing(alphas) ? Colorfy.defaultalphas(values) : alphas
vcolorscheme = isnothing(colorscheme) ? Colorfy.defaultcolorscheme(values) : colorscheme
vcolorrange = isnothing(colorrange) ? Colorfy.defaultcolorrange(values) : colorrange
colorfy(values, alphas=valphas, colorscheme=vcolorscheme, colorrange=vcolorrange)
end
process(values::AbstractVector, colorscheme, colorrange, alphas) = colorfy(values; alphas, colorscheme, colorrange)

process(value, colorscheme, colorrange, alphas) = process([value], colorscheme, colorrange, alphas) |> first

0 comments on commit 7b63dc4

Please sign in to comment.