Skip to content

Commit

Permalink
cairo: support alpha argument in band()
Browse files Browse the repository at this point in the history
  • Loading branch information
aplavin committed Jul 16, 2024
1 parent f3e9013 commit 4dbc262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CairoMakie/src/overrides.jl
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function draw_plot(scene::Scene, screen::Screen,
band::Band{<:Tuple{<:AbstractVector{<:Point2},<:AbstractVector{<:Point2}}})

if !(band.color[] isa AbstractArray)
color = to_cairo_color(band.color[], band)
color = coloralpha(to_cairo_color(band.color[], band), band.alpha[])
upperpoints = band[1][]
lowerpoints = band[2][]
points = vcat(lowerpoints, reverse(upperpoints))
Expand Down

0 comments on commit 4dbc262

Please sign in to comment.