I’m using Raphaël.js to draw some small circles (2-4px radius), which is done through SVG on all browser except IE. The circles don’t look smooth to me, so my question is:
- Is there some way to add antialiasing to Raphaël.js?
- Barring that, is there some way to antialias SVG objects?
On further experimentation, I think the trouble is not so much that the SVG was not antialiased (indeed, I found when drawing lines that I usually wanted to disable antialiasing by setting
shapeRenderingtocrisp-edges; see this issue) as that I wanted even smoother edges on my circles than the antialiasing provided.To achieve this in Raphaël.js, you can set the
fillandstrokecolors separately. For instance, on a white background, setting thestroketo a lighter color than thefillachieves the desired effect.