Skip to content

Commit

Permalink
Fix alpha blending for gradients
Browse files Browse the repository at this point in the history
See discussion at:
racket/pict#2
  • Loading branch information
soegaard authored and mflatt committed Jun 18, 2020
1 parent ec86a7e commit 733b16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion draw-lib/racket/draw/private/dc.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@
[r (norm (color-red c))]
[g (norm (color-green c))]
[b (norm (color-blue c))]
[a (color-alpha c)])
[a (* (color-alpha c) (get-alpha))])
(cairo_pattern_add_color_stop_rgba p offset r g b a)))
(install-transformation transformation cr)
(cairo_set_source cr p)
Expand Down

0 comments on commit 733b16d

Please sign in to comment.