I have some picts that I'm hoping to make useful on both light and dark backgrounds. One way I envisioned to do so was to outline black pen strokes with white strokes, so that on either kind of background one of the stroke colors would stand out.
Since some of these picts are being drawn from scratch, I can in theory adjust the drawing for those myself (even by dropping to the dc
level if I have to).
Some of these picts, however, composite existing picts that I do not wish to modify extensively now. Hence the titular question: is there a way I can modify an existing pict to cause it to be drawn by a pen where the black border strokes have a "white outline"?
Here's a simple example:
(require pict qi)
(define (target)
(~> (20 40)
(>< (circle #:border-width 5))
cc-superimpose))
Is there something I can do to the body of target
(or to the place that (target)
is eventually converted to some other representation, whether that's an by convert
ing to an SVG or by drawing to a dc%
) to outline the circle
s in white that is not circle
-specific? Or am I stuck with needing to modify all my picts individually with what they need? (What would I do in the case of pin-arrow-line
, where I don't see an obvious way to make this change happen to the arrow line?)