Basically I'd like to produce a graphic like this:
That is a rectangle with rounded corners, filled with a color gradient. While Rectangle
offers the RoundingRadius
option that takes care of the round corners, there is no obvious way of getting the color gradient to work. Using Polygon
it's easy to implement the gradient, but I can only think of very messy ways of rounding the corners. Can I have both?
Update
I just found this answer. That's very close to what I want, but that solution doesn't allow for nice edges.
EdgeForm[Thickness[0.02]]
? $\endgroup$ – David G. Stork Feb 10 '16 at 21:06EdgeForm
$\endgroup$ – Algohi Feb 10 '16 at 21:07BoundaryStyle -> Directive[Red, Thickness[0.01]]
in the Accepted solution to get what you want. $\endgroup$ – Mr.Wizard Feb 13 '16 at 8:13