blob: 36b4f9e6c2400457c9f81377a6e27c91e941629e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
---
title: circle
slug: Web/SVG/Element/circle
tags:
- Elemento
- Gráficos SVG
- Referencia
- SVG
translation_of: Web/SVG/Element/circle
---
<div>{{SVGRef}}</div>
<p>El elemento <span style="font-family: consolas,monaco,andale mono,monospace;">circle </span>es una forma básica de SVG, usada para crear circulos a partir de un punto, el cual indica el centro del circulo, y un radio.</p>
<h2 id="Contexto_de_uso">Contexto de uso</h2>
<p>{{svginfo}}</p>
<h2 id="Ejemplo">Ejemplo</h2>
<p> </p>
<pre class="brush: xml line-numbers language-xml"><code class="language-xml"><span class="prolog token"><?xml version="1.0"?></span>
<span class="tag token"><span class="tag token"><span class="punctuation token"><</span>svg</span> <span class="attr-name token">viewBox</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>0 0 120 120<span class="punctuation token">"</span></span> <span class="attr-name token">version</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>1.1<span class="punctuation token">"</span></span>
<span class="attr-name token">xmlns</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>http://www.w3.org/2000/svg<span class="punctuation token">"</span></span><span class="punctuation token">></span></span>
<span class="tag token"><span class="tag token"><span class="punctuation token"><</span>circle</span> <span class="attr-name token">cx</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>60<span class="punctuation token">"</span></span> <span class="attr-name token">cy</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>60<span class="punctuation token">"</span></span> <span class="attr-name token">r</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>50<span class="punctuation token">"</span></span><span class="punctuation token">/></span></span>
<span class="tag token"><span class="tag token"><span class="punctuation token"></</span>svg</span><span class="punctuation token">></span></span></code></pre>
<p> </p>
<p>» <a href="https://mdn.mozillademos.org/files/7707/circle2.svg">circulo.svg</a></p>
<h2 id="Atributos">Atributos</h2>
<h3 id="Atributos_globales">Atributos globales</h3>
<ul>
<li><a href="/en/SVG/Attribute#ConditionalProccessing">Atributos de procesamiento condicional</a> »</li>
<li><a href="/en/SVG/Attribute#Core">Atributos principales</a> »</li>
<li><a href="/en/SVG/Attribute#GraphicalEvent">Atributos de eventos gráficos</a> »</li>
<li><a href="/en/SVG/Attribute#Presentation">Atributos de presentación</a> »</li>
<li>{{ SVGAttr("class") }}</li>
<li>{{ SVGAttr("style") }}</li>
<li>{{ SVGAttr("externalResourcesRequired") }}</li>
<li>{{ SVGAttr("transform") }}</li>
</ul>
<h3 id="Atributos_específicos">Atributos específicos</h3>
<ul>
<li>{{ SVGAttr("cx") }}</li>
<li>{{ SVGAttr("cy") }}</li>
<li>{{ SVGAttr("r") }}</li>
</ul>
<h2 id="Interfaz_DOM">Interfaz DOM</h2>
<p>Este elemento implementa la interfaz {{ domxref("SVGCircleElement") }}.</p>
<h2 id="Compatibilidad_de_navegadores">Compatibilidad de navegadores</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
<table class="compat-table">
<tbody>
<tr>
<th>Característica</th>
<th scope="col">Chrome</th>
<th scope="col">Firefox (Gecko)</th>
<th scope="col">Internet Explorer</th>
<th scope="col">Opera</th>
<th scope="col">Safari</th>
</tr>
<tr>
<td>Soporte básico</td>
<td>1.0</td>
<td>{{ CompatGeckoDesktop('1.8') }}</td>
<td>{{ CompatIE('9.0') }}</td>
<td>{{ CompatOpera('8.0') }}</td>
<td>{{ CompatSafari('3.0.4') }}</td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<tbody>
<tr>
<th>Característica</th>
<th>Android</th>
<th>Firefox Mobile (Gecko)</th>
<th>IE Phone</th>
<th>Opera Mobile</th>
<th>Safari Mobile</th>
</tr>
<tr>
<td>Soporte básico</td>
<td>{{ CompatAndroid('3.0') }}</td>
<td>{{ CompatGeckoMobile('1.8') }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatVersionUnknown() }}</td>
<td>{{ CompatSafari('3.0.4') }}</td>
</tr>
</tbody>
</table>
</div>
<p>La gráfica está basada en <a href="/en-US/docs/Web/SVG/Compatibility_sources">estas fuentes</a>.</p>
<h2 id="Relacionado">Relacionado</h2>
<ul>
<li>{{ SVGElement("ellipse") }}</li>
</ul>
|