The Asymptote file

draw(unitcircle ^^ expi(-3pi/4) -- expi(pi/4), red + linewidth(1cm) + opacity(0.5));

produces this

enter image description here

which is clearly not what was intended. I'd like to be able to draw (fill, etc.) several paths (or perhaps even an entire picture) that draw over each other as though they were opaque, but such that things drawn before the entire group are still visible (as in transparency). In TikZ, I can do this using transparency groups (although that feature has minor issues if you combine it with enough other esoteric features; see this question).

How can this be done using Asymptote?

  • Can the foreground–background blending options as given here help? – nidhin Jul 23 '15 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.