Skip to content

Commit 7b63dc4

Browse files
authored
Update to the latest version of Colorfy.jl (#1147)
1 parent 0d3ef92 commit 7b63dc4

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
2525
[compat]
2626
Bessels = "0.2"
2727
CircularArrays = "1.3"
28-
Colorfy = "1.0"
28+
Colorfy = "1.1"
2929
CoordRefSystems = "0.16"
3030
DelaunayTriangulation = "1.0"
3131
Distances = "0.10"

ext/colors.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
# ------------------------------------------------------------------
44

55
# preprocess colors provided by user
6-
function process(values::AbstractVector, colorscheme, colorrange, alphas)
7-
valphas = isnothing(alphas) ? Colorfy.defaultalphas(values) : alphas
8-
vcolorscheme = isnothing(colorscheme) ? Colorfy.defaultcolorscheme(values) : colorscheme
9-
vcolorrange = isnothing(colorrange) ? Colorfy.defaultcolorrange(values) : colorrange
10-
colorfy(values, alphas=valphas, colorscheme=vcolorscheme, colorrange=vcolorrange)
11-
end
6+
process(values::AbstractVector, colorscheme, colorrange, alphas) = colorfy(values; alphas, colorscheme, colorrange)
127

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

0 commit comments

Comments
 (0)