{"id":9295,"date":"2022-10-06T04:38:14","date_gmt":"2022-10-06T04:38:14","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=9295"},"modified":"2022-10-06T04:38:14","modified_gmt":"2022-10-06T04:38:14","slug":"svg-circle","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/10\/06\/svg-circle\/","title":{"rendered":"SVG Circle"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"description-of-the-lt-circle-gt-element-1\">Description of the &lt;circle&gt; element<\/h2>\n\n\n\n<p>The SVG &lt;circle&gt; element creates circles, based on a center point and a radius. The coordinates of the circle&#8217;s center are specified by the&nbsp;cx&nbsp;and&nbsp;cy&nbsp;attributes. And the radius of the circle is specified by the&nbsp;r&nbsp;attribute.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-the-svg-lt-circle-gt-element-3\">Example of the SVG &lt;circle&gt; element:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;svg height=\"300\" width=\"300\"&gt;\n      &lt;circle cx=\"150\" cy=\"150\" r=\"100\" stroke=\"grey\" stroke-width=\"5\" fill=\"purple\" \/&gt;\n      Sorry, inline SVG isn't supported by your browser.  \n    &lt;\/svg&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p>Let\u2019s explain the code above:<\/p>\n\n\n\n<ul><li>The&nbsp;cx&nbsp;and&nbsp;cy&nbsp;attributes specify the x and y coordinates of the circle\u2019s center. In the cases where the&nbsp;cx&nbsp;and&nbsp;cy&nbsp;attributes are omitted, the center of the circle is set to (0,0).<\/li><li>The&nbsp;r&nbsp;attribute is used to specify the radius of the circle.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"attributes-6\">Attributes<\/h2>\n\n\n\n<p>The SVG &lt;circle> element also supports the\u00a0Global Attributes\u00a0and\u00a0Event Attributes.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Attribute<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>cx<\/td><td>The x-axis coordinate of the circle\u2019s center.<\/td><\/tr><tr><td>cy<\/td><td>The y-axis coordinate of the circle\u2019s center.<\/td><\/tr><tr><td>r<\/td><td>The radius of the circle. A value that is lower or equal to zero will disable the rendering of the circle.<\/td><\/tr><tr><td>pathlength<\/td><td>This attribute specifies the total length for the path, in user units.<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Description of the &lt;circle&gt; element The SVG &lt;circle&gt; element creates circles, based on a center point and a radius. The coordinates of the circle&#8217;s center are specified by the&nbsp;cx&nbsp;and&nbsp;cy&nbsp;attributes. And the radius of the circle is specified by the&nbsp;r&nbsp;attribute. Example of the SVG &lt;circle&gt; element: Let\u2019s explain the code above: The&nbsp;cx&nbsp;and&nbsp;cy&nbsp;attributes specify the x and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[574],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9295"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=9295"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9295\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=9295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=9295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=9295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}