SVG custom circles shape - javascript
I don't have experience with SVG and I have a problem with creating my custom shape. I want to create below shape.
Share of slices and belongings lines should be genarated dynamically.
All slices are the same. For example: If we have 4 slices each slices would have 25% value, if there are 10 slices we would have 10 slices with 10%.
<!DOCTYPE html>
<html>
<body>
<svg width="800" height="800">
<circle cx="400" cy="400" r="300" stroke="black" stroke-width="2" fill="red" />
<circle cx="400" cy="400" r="80" stroke="black" stroke-width="2" fill="blue" />
<path d="M 400 400 H 480 320" stroke="black" stroke-width="2" fill="none" />Sorry, your browser does not support inline SVG.
</svg>
</body>
</html>
Please, help me out.
You will need multiple elements to this SVG.
Two for the center circle
Four for the outer circle
First, you need 4 areas for the 4 sections in the outside circle. This can be done like so:
<svg width="50%" viewbox="0 0 100 100">
<path d="M50,50 L0,50 A50,50 0 0,1 50,0" fill="red"></path>
<path d="M50,50 L100,50 A50,50 0 0,1 0,50" fill="blue"></path>
<path d="M50,50 L100,50 A50,50 0 0,1 50,100" fill="green"></path>
<path d="M50,50 L50,0 A50,50 0 0,1 100,50" fill="yellow"></path>
</svg>
For the inside area, you will need two segments with text inside.
text {
fill: white;
font-size: 16px;
}
<svg width="50%" viewbo0x="0 0 100 100">
<path d="M0,50 A50,50 0 0,1 100,50z" fill="purple"></path>
<path d="M0,50 A-50,-50 0 1,0 100,50z" fill="green"></path>
<text x="18" y="40">Some text</text>
<text x="15" y="70">Bottom text</text>
</svg>
Join them together and hey presto, you should have your shape.
text {
font-size: 2.5em;
fill: white;
}
<svg width="50%" viewbox="0 0 1000 1000">
<path d="M500,500 L0,500 A500,500 0 0,1 500,0" fill="red"></path>
<path d="M500,500 L1000,500 A500,500 0 0,1 0,500" fill="blue"></path>
<path d="M500,500 L1000,500 A500,500 0 0,1 500,1000" fill="green"></path>
<path d="M500,500 L500,0 A500,500 0 0,1 1000,500" fill="yellow"></path>
<path d="M350,500 A100,100 0 0,1 650,500z" fill="purple" x="45" y="45"></path>
<path d="M350,500 A-100,-100 0 1,0 650,500z" fill="pink"></path>
<text x="420" y="450">Some text</text>
<text x="410" y="550">Bottom text</text>
</svg>
SVG Documentation (MDN)
Related
Removing gap between two SVG paths without removing anti-aliasing
I have two SVG paths that have a gap between them. From reading through other questions (in particular this one) I understand this is because of the native anti-aliasing properties of SVGs. So I added shapeRendering="crispEdges" This does remove the gap. However it results in jagged edges because of the removal of anti-aliasing. <svg height="300" width="300" shapeRendering="crispEdges"> <path d="M150 10 a120 120 0 0 1 103.9230 60" fill="none" stroke="green" stroke-width="20" /> <path d="M253.9230 70 a120 120 0 0 1 0 120" fill="none" stroke="green" stroke-width="20" /> </svg> I've also tried the suggestion in this question to add crispEdges to the parent svg of the path and add shapeRendering="optimizeQuality" to the path but that didn't work. How can I remove the gap AND keep the smooth edges of my svg path?
You could also mitigate this gap rendering effect by applying a subtle svg feMorphology dilate filter – resulting in slightly expanded strokes closing thin gaps between paths: SVG feMorphology filter svg { overflow: visible; } .chart path { filter: url(#outline); } path:hover { stroke: red; } <svg height="300" width="300" shape-rendering="geometricPrecision"> <g class="original"> <path d="M150 10 a120 120 0 0 1 103.9230 60" fill="none" stroke="green" stroke-width="20" /> <path d="M253.9230 70 a120 120 0 0 1 0 120" fill="none" stroke="green" stroke-width="20" /> </g> <text x="50%" y="50%">Original</text> </svg> <svg height="300" width="300"> <filter filterUnits="userSpaceOnUse" id="outline" > <feMorphology in="SourceGraphic" result="DILATED" operator="dilate" radius="0.5" /> </filter> <g class="chart"> <path d="M150 10 a120 120 0 0 1 103.9230 60" fill="none" stroke="green" stroke-width="20" /> <path d="M253.9230 70 a120 120 0 0 1 0 120" fill="none" stroke="green" stroke-width="20" /> </g> <text x="50%" y="50%">Dilate filter</text> </svg> But this approach will also introduce slightly rounded edges (you can see this effect on hover). More importantly, svg filters are quite expensive with regards to rendering performance – rather negligible if you only display a few elements per page view. Add concatenated background path As suggested by #Robert Longson: you could also prepend a background path based on concatenated d path data. This task could be achieved with a javaScript helper method cloning the first path and displaying the concatenated paths. addBgPaths(".addBGPath"); function addBgPaths(selector) { let addPathSvgs = document.querySelectorAll(selector); addPathSvgs.forEach(function(svg) { let paths = document.querySelectorAll(".addBGPath path"); let firstPath = paths[0]; let firstPathCloned = firstPath.cloneNode(); //cloned elements shouldn't have ids to avoid non unique ids firstPathCloned.removeAttribute("id"); let dArr = [firstPath.getAttribute("d")]; for (let i = 1; i < paths.length; i++) { let path = paths[i]; let d = path.getAttribute("d"); dArr.push(d); } firstPathCloned.setAttribute("d", dArr.join(" ")); svg.insertBefore(firstPathCloned, svg.children[0]); }); } <svg height="300" width="300" shape-rendering="geometricPrecision"> <path d="M150 10 a120 120 0 0 1 103.9230 60" fill="none" stroke="green" stroke-width="20" /> <path d="M253.9230 70 a120 120 0 0 1 0 120" fill="none" stroke="green" stroke-width="20" /> <text x="0" y="50%">Original</text> </svg> <svg class="addBGPath" height="300" width="300" shape-rendering="geometricPrecision"> <path id="first2" d="M150 10 a120 120 0 0 1 103.9230 60" fill="none" stroke="green" stroke-width="20" /> <path d="M253.9230 70 a120 120 0 0 1 0 120" fill="none" stroke="green" stroke-width="20" /> <text x="0" y="50%">Add bg path</text> </svg> <svg class="addBGPath" height="300" width="300" shape-rendering="geometricPrecision"> <path id="first" d="M150 10 a120 120 0 0 1 103.9230 60" fill="none" stroke="green" stroke-width="20" /> <path d="M253.9230 70 a120 120 0 0 1 0 120" fill="none" stroke="red" stroke-width="20" /> <text x="0" y="50%">Add bg path (red)</text> </svg> <svg height="300" width="300" shape-rendering="geometricPrecision"> <path d="M150 10 a120 120 0 0 1 103.9230 60" fill="none" stroke="green" stroke-width="20" /> <path d="M253.9230 70 a120 120 0 0 1 0 120" fill="none" stroke="red" stroke-width="20" /> <text x="0" y="50%">Original (red)</text> </svg> If all your path segments have the same color, this is probably the most elegant solution. But this approach will also introduce colored "halos" when segments use different stroke colors (example #3 compared to #4).
If you able to edit the svg in editor, you can overlap like this. The darker green is the intersection between two paths.
As a quick fix, you can make the ends overlap with stroke-linecap="square" But ideally, you need to create a single path instead of two separate paths. <svg height="300" width="300" shapeRendering="crispEdges"> <path d="M150 10 a120 120 0 0 1 103.9230 60" fill="none" stroke="green" stroke-width="20" stroke-linecap="square" /> <path d="M253.9230 70 a120 120 0 0 1 0 120" fill="none" stroke="green" stroke-width="20" stroke-linecap="square" /> </svg>
SVG Text to be placed on a ring
I want svg text to be placed on a ring. Is it possible to wrap it around? Any workarounds please? I have tried transform matrix, but I am not able to do with it. Example of ring image
You can convert a circle into a path. I used Inkscape for that. So, here is a basic example: <svg viewBox="-10 -10 120 120" xmlns="http://www.w3.org/2000/svg" width="300" height="300"> <defs> <path id="MyPath" fill="none" stroke="red" d="M 50,95 A 45,45 0 0 1 5,50 45,45 0 0 1 50,5 45,45 0 0 1 95,50 45,45 0 0 1 50,95 Z" /> </defs> <text textLength="280"> <textPath href="#MyPath">This is your text</textPath> </text> </svg> Update Maybe I misunderstood the question, so here is the new version. I'm not satisfied with the "skewing" if the text. I will update this answer later. text { font-size: 8px; } <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" width="300" height="300"> <defs> <path id="MyPath" fill="none" stroke="red" d="M 46.326016,82.135999 C 75.229867,67.395261 78.467889,35.580206 78.467889,35.580206" /> </defs> <image width="100" height="100" href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4RhGRXhpZgAASUkqAAgAAAAGABoBBQABAAAAVgAAABsBBQABAAAAXgAAACgBAwABAAAAAgAAADEBAgANAAAAZgAAADIBAgAUAAAAdAAAAGmHBAABAAAAiAAAAJoAAABIAAAAAQAAAEgAAAABAAAAR0lNUCAyLjEwLjE4AAAyMDIxOjA5OjAyIDE2OjE3OjE4AAEAAaADAAEAAAABAAAAAAAAAAgAAAEEAAEAAAAAAQAAAQEEAAEAAAAAAQAAAgEDAAMAAAAAAQAAAwEDAAEAAAAGAAAABgEDAAEAAAAGAAAAFQEDAAEAAAADAAAAAQIEAAEAAAAGAQAAAgIEAAEAAAA4FwAAAAAAAAgACAAIAP/Y/+AAEEpGSUYA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YXKJq1GWrrNbmEQv38FgwA5RC5qGlGyRqfQJ9VAy/QhxAG1uDXvBdDDZKiB0mtvg7/AO8hNLig4+AQfm5/lsbZPlQbH6phFyoC0jMzcyVajZjva7u8q7gVEQxgKjFGPdOHQmYpGuKVrnBajEy4FxjNwgRDxwRgGB6P4HY/pyjBC5ekWC8aYPFUDScMKB0DhgQebyaeL94eBwMAGtQ5/FMCIiIJ4OI+8EneQ9k8H1gYAIf4fP8A/9k="/> <text textLength="50"> <textPath class="text" href="#MyPath">This is your text</textPath> </text> </svg>
Adding a Ring Bitmap to SVG Using <image> Open the SVG file in a vector editor and create a path for the text as #enxaneta comments: You can use the ring inage inside an svg element. You will need to draw a path where you want to put your text. Next you use this path as a textPath inside the text element. below is full code: .container { width:60vw; height:60vh; } <div class="container"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" preserveAspectRatio="xMinYMin meet" id="svg4" viewBox="0 0 1181 1181"> <image xlink:href="https://i.stack.imgur.com/5pn89.jpg" id="image2" height="100%" width="100%"/> <path id="RingPath" d="M 286.49258,567.98094 C 326.93719,456.93269 377.70892,383.63001 427.86229,316.51801 534.88572,173.30617 639.45611,129.74376 639.45611,129.74376" fill="none" /> <text font-size="60px" font-weight="bold" fill="#826B28"> <textPath href="#RingPath"> SVG Text to be placed </textPath> </text> </div> </svg>
How to position an SVG circle along another circle's path
I'm building a Gauge chart in a presentational component in React. I just need to pass it a percentage and let the component do the rest. I can't use any animations because I'm taking a screenshot of the component to place the image in a Powerpoint presentation. Here's a screenshot of what I'm trying to do: As you can see in my code snippet, the circle <marker> is being positioned at the end of the grey <path> instead of at the end of the green <path>. How could I position the circle so it sits at the stroke-linecap of the green <path> as in the image above? Here's the HTML code I have so far: <div style="width:400px"> <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <defs> <marker id="dot" viewBox="0 0 10 10" refX="4" refY="4" markerWidth="4" markerHeight="4" > <circle cx="4" cy="4" r="2" fill="#FFFFFF" stroke="#008000" stroke-width="2" /> </marker> </defs> <path d="M20,60a35,35 0 1,1 60,0" stroke="#D3D7DB" stroke-width="4" fill="none" stroke-linecap="round"></path> <path d="M20,60a35,35 0 1,1 60,0" stroke="#008000" stroke-width="6" pathLength="100" fill="none" stroke-linecap="round" stroke-dasharray="75 35" marker-end="url(#dot)"></path> </svg> </div>
You can do it all in SVG by setting pathLength and using animationMotion to position the circle. Some JavaScript and a W3C standard Web Component (supported in all modern Browsers) help in putting multiple gauges on screen and making them dynamic. customElements.define("svg-gauge", class extends HTMLElement { connectedCallback() { let speed = 0.5; // set to 0.0001 for instant display! let arc = "M20,60a35,35 0 1,1 60,0"; let col = this.getAttribute("color") || "green"; this.innerHTML = `<input type="range" min="0" max="100" step="5" value="0"`+ // delete 2 lines ` oninput="this.parentNode.percent=this.value" /><br>`+ // just for demo `<svg viewbox="0 0 100 100"> <path d="${arc}" stroke="grey" stroke-width="6" fill="none" stroke-linecap="round"></path> <path id="P" d="${arc}" stroke="${col}" stroke-width="8" pathLength="100" fill="none" stroke-linecap="round" stroke-dasharray="75 35"/> <circle stroke="${col}" cx="0" cy="0" fill="#fff" r="4" stroke-width="3"> <animateMotion dur="${speed}s" path="${arc}" keyPoints="0;0.75" fill="freeze" keyTimes="0;1" calcMode="linear"/> </circle> <text x="50%" y="40%" text-anchor="middle">XXX</text> </svg>`; this.style.display='inline-block'; this.percent = this.getAttribute("value") || "50"; } set percent(val = 0) { this.setAttribute("value", val); let dash = val + " " + (105 - val); this.querySelector("#P").setAttribute('stroke-dasharray', dash); this.querySelector("animateMotion").setAttribute('keyPoints', '0;'+val/100); this.querySelector("text").innerHTML =`${val} %`; this.querySelector("animateMotion").beginElement(); this.querySelector("input").value = val; } }) <svg-gauge value="35" color="red" ></svg-gauge> <svg-gauge value="50" color="orange"></svg-gauge> <svg-gauge value="75" color="green" ></svg-gauge>
I went ahead and accepted Danny '365CSI' Engelman's answer above, but just in case anyone wants to do this without the animations here is how I ended up implementing it: <div style="width:400px"> <svg viewBox="0 -10 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="M20,60a35,35 0 1,1 60,0" stroke="#D3D7DB" stroke-width="4" fill="none" stroke-linecap="round"></path> <path d="M20,60a35,35 0 1,1 60,0" stroke="#008000" stroke-width="6" pathLength="100" fill="none" stroke-linecap="round" stroke-dasharray="50 85"></path> <circle cx="0" cy="0" r="6" stroke-width="6" fill="#FFFFFF" stroke="#008000" > <animateMotion begin="0s" dur="infinite" repeatCount="infinite" keyPoints="0.5;0.5" fill="freeze" keyTimes="0;1" calcMode="linear" path="M20,60a35,35 0 1,1 60,0" ></animateMotion> </circle> </svg> </div>
SVG path overflow and centered dynamically
I have the SVG path curve that should be centered every time on the center icons, even I add the text below icon on above them, how to hold this line to the center of the icon. Should I draw it as one path or as several paths? I've hot now such picture codepen .I use foundation zurb 6.Is it possible to hold the line to svg cordinate with Javascript and make it responsive? Or Snap.svg I try to achieve this one : <div class="wrapper"> <div class="container"> <div style="text-align:center"> <h1> The text should not shift the line</h1></div> <div class="row columns"> <div class="svg-container"> <!-- The line --> <svg class="red svg svg-1 svg-2" preserveAspectRatio="none"> <!--лишню лінію викинути--> <path d="M 50 0 l 0 27 q 0 50 50 50 l 1000 0 q 50 0 50 50 l 0 150" stroke="#d4d4d4" stroke-width="1" fill="none" /> <path d="M 50 0 l 0 27 q 0 50 50 50 l 2000 0 " stroke="#d4d4d4" stroke-width="1" fill="none" /> </svg> <svg class="icon-svg" version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="75.001px" height="75px" viewBox="0 0 75.001 75" enable-background="new 0 0 75.001 75" xml:space="preserve"> <switch> <g i:extraneous="self"> <g> <!-- circle for closing LINES 1 --> <circle cx="37.5" cy="37.5" r="36" stroke="black" stroke-width="0" fill="gray" /> <!--!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!--> <path fill="#FFD100" d="M64.017,10.984C56.934,3.9,47.517,0,37.5,0S18.067,3.901,10.984,10.984S0,27.484,0,37.5 c0,10.017,3.901,19.433,10.984,26.517C18.067,71.1,27.483,75,37.5,75s19.434-3.9,26.517-10.982 c7.083-7.084,10.984-16.5,10.984-26.517C75.001,27.484,71.1,18.067,64.017,10.984z M72.001,37.5c0,2.656-0.308,5.264-0.889,7.791 l-6.286-7.793l6.278-7.823C71.69,32.212,72.001,34.832,72.001,37.5z M13.105,13.105C19.622,6.588,28.285,3,37.5,3 s17.879,3.588,24.396,10.105c3.739,3.739,6.509,8.188,8.195,13.04l-7.043,8.775c-5.706-8.429-15.305-13.585-25.547-13.585 S17.66,26.491,11.954,34.92L4.91,26.144C6.597,21.292,9.366,16.844,13.105,13.105z M61.151,37.5 c-5.063,8.144-14.045,13.166-23.65,13.166S18.914,45.645,13.851,37.5c5.063-8.144,14.045-13.166,23.65-13.166 S56.088,29.357,61.151,37.5z M3,37.5c0-2.669,0.311-5.289,0.896-7.827l6.279,7.824l-6.287,7.795C3.308,42.766,3,40.157,3,37.5z M61.896,61.896C55.379,68.412,46.715,72,37.5,72s-17.878-3.588-24.395-10.104c-3.749-3.75-6.522-8.211-8.208-13.078l7.053-8.742 c5.706,8.432,15.307,13.59,25.551,13.59s19.845-5.158,25.551-13.59l7.052,8.742C68.419,53.685,65.645,58.146,61.896,61.896z"/> <path fill="#FFD100" d="M37.501,26.833c-5.882,0-10.667,4.785-10.667,10.667c0,5.881,4.785,10.666,10.667,10.666 c5.881,0,10.666-4.784,10.666-10.666C48.167,31.619,43.382,26.833,37.501,26.833z M37.501,45.166 c-4.228,0-7.667-3.438-7.667-7.666c0-4.228,3.439-7.667,7.667-7.667s7.666,3.439,7.666,7.667 C45.167,41.728,41.729,45.166,37.501,45.166z"/> <path fill="#FFD100" d="M37.501,34.583c-1.608,0-2.917,1.309-2.917,2.917c0,1.608,1.309,2.916,2.917,2.916 c1.607,0,2.916-1.308,2.916-2.916C40.417,35.892,39.108,34.583,37.501,34.583z"/> </g> </g> </switch> </svg> <svg class="icon-svg" version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="74.963px" height="75px" viewBox="0 0 74.963 75" enable-background="new 0 0 74.963 75" xml:space="preserve"> <switch> <foreignObject requiredExtensions="&ns_ai;" x="0" y="0" width="1" height="1"> <i:pgfRef xlink:href="#adobe_illustrator_pgf"> </i:pgfRef> </foreignObject> <g i:extraneous="self"> <g> <!-- circle for closing LINES 2 --> <circle cx="37.5" cy="37.5" r="36" stroke="black" stroke-width="0" fill="gray" /> <!--!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!--> <path fill="#FFD100" d="M63.998,10.984C56.914,3.9,47.497,0,37.48,0S18.048,3.901,10.965,10.984 c-14.62,14.621-14.62,38.412,0,53.033C18.048,71.1,27.464,75,37.48,75s19.434-3.9,26.518-10.983 C78.618,49.396,78.618,25.605,63.998,10.984z M61.877,61.896C55.36,68.412,46.696,72,37.48,72 c-9.215,0-17.878-3.589-24.395-10.104c-13.45-13.451-13.45-35.339,0-48.791C19.603,6.588,28.266,3,37.48,3 c9.216,0,17.88,3.588,24.396,10.105C75.327,26.557,75.327,48.445,61.877,61.896z"/> <path fill="#FFD100" d="M34.736,37.307H17.043c-0.828,0-1.5,0.671-1.5,1.5V56.5c0,0.829,0.672,1.5,1.5,1.5h17.693 c0.828,0,1.5-0.671,1.5-1.5V38.806C36.236,37.978,35.564,37.307,34.736,37.307z M33.236,55H18.543V40.306h14.693V55z"/> <path fill="#FFD100" d="M57.92,37.307H40.227c-0.828,0-1.5,0.671-1.5,1.5V56.5c0,0.829,0.672,1.5,1.5,1.5H57.92 c0.828,0,1.5-0.671,1.5-1.5V38.806C59.42,37.978,58.748,37.307,57.92,37.307z M56.42,55H41.727V40.306H56.42V55z"/> <path fill="#FFD100" d="M47.828,33.667V15.974c0-0.829-0.672-1.5-1.5-1.5H28.635c-0.828,0-1.5,0.671-1.5,1.5v17.693 c0,0.829,0.672,1.5,1.5,1.5h17.693C47.156,35.167,47.828,34.496,47.828,33.667z M44.828,32.167H30.135V17.474h14.693V32.167z"/> </g> </g> </switch> </svg> <svg class="icon-svg" version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="74.963px" height="75px" viewBox="0 0 74.963 75" enable-background="new 0 0 74.963 75" xml:space="preserve"> <switch> <foreignObject requiredExtensions="&ns_ai;" x="0" y="0" width="1" height="1"> <i:pgfRef xlink:href="#adobe_illustrator_pgf"> </i:pgfRef> </foreignObject> <g i:extraneous="self"> <g> <!-- circle for closing LINES 3 --> <circle cx="37.5" cy="37.5" r="36" stroke="black" stroke-width="0" fill="gray" /> <!--!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!--> <path fill="#FFD100" d="M63.998,10.984C56.914,3.9,47.497,0,37.48,0S18.048,3.901,10.965,10.984 c-14.62,14.621-14.62,38.412,0,53.033C18.048,71.1,27.464,75,37.48,75s19.434-3.9,26.518-10.983 C78.618,49.396,78.618,25.605,63.998,10.984z M61.877,61.896C55.36,68.412,46.696,72,37.48,72 c-9.215,0-17.878-3.589-24.395-10.104c-13.45-13.451-13.45-35.339,0-48.791C19.603,6.588,28.266,3,37.48,3 c9.216,0,17.88,3.588,24.396,10.105C75.327,26.557,75.327,48.445,61.877,61.896z"/> <path fill="#FFD100" d="M34.736,37.307H17.043c-0.828,0-1.5,0.671-1.5,1.5V56.5c0,0.829,0.672,1.5,1.5,1.5h17.693 c0.828,0,1.5-0.671,1.5-1.5V38.806C36.236,37.978,35.564,37.307,34.736,37.307z M33.236,55H18.543V40.306h14.693V55z"/> <path fill="#FFD100" d="M57.92,37.307H40.227c-0.828,0-1.5,0.671-1.5,1.5V56.5c0,0.829,0.672,1.5,1.5,1.5H57.92 c0.828,0,1.5-0.671,1.5-1.5V38.806C59.42,37.978,58.748,37.307,57.92,37.307z M56.42,55H41.727V40.306H56.42V55z"/> <path fill="#FFD100" d="M47.828,33.667V15.974c0-0.829-0.672-1.5-1.5-1.5H28.635c-0.828,0-1.5,0.671-1.5,1.5v17.693 c0,0.829,0.672,1.5,1.5,1.5h17.693C47.156,35.167,47.828,34.496,47.828,33.667z M44.828,32.167H30.135V17.474h14.693V32.167z"/> </g> </g> </switch> </svg> </div> </div> </div> </div>
HTML5 SVG anti-aliasing causes grey line between paths. How to avoid it?
There is an imaginary square which I want to draw as two halves, i.e. two triangles. Whilst they should perfectly fit together and make a square, a tiny line caused by anti-aliasing appears. These triangles should be of different color, but I left both them black in the given example to make the line more visible. <svg width="100" height="100" viewPort="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg"> <defs> <clipPath id="first"> <path d="M 0 0 L 100 100 L 0 100 Z" fill="red"/> </clipPath> <clipPath id="second"> <path d="M 0 0 L 100 0 L 100 100 Z" fill="red"/> </clipPath> </defs> <rect width="100" fill="black" height="100" clip-path="url(#first)"/> <rect width="100" fill="black" height="100" clip-path="url(#second)"/> </svg> JSFiddle I am open to solutions - canvas, WebGL etc. I just want to know possible solutions which would improve rendering.
I'm not sure why you are seeing the line using clip paths, but if I just change it around to using regular polygons and use shape-rendering: crispEdges the line doesn't appear: <svg width="100" height="100" viewPort="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg"> <polygon points="0,0 100,0 100,100" style="fill:black;shape-rendering:crispEdges;" /> <polygon points="0,0 100,100 0,100" style="fill:black;shape-rendering:crispEdges;" /> </svg>