aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/svg/element/circle/index.md
blob: 0de460e6611debbdbe2bd7addccf43c995c366ee (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
---
title: circle
slug: Web/SVG/Element/circle
tags:
  - SVG
  - SVG Element
  - SVG Reference
translation_of: Web/SVG/Element/circle
---
{{SVGRef}}

L'élément `circle` est un élément de la catégorie des Formes simples, utilisé pour créer des cercles, en se basant sur un centre et un rayon.

## Usage

{{svginfo}}

## Exemple

```css hidden
 html,body,svg { height:100% }
```

```html
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">

  <circle cx="50" cy="50" r="50"/>

</svg>
```

{{EmbedLiveSample('Exemple', 100, 100)}}

## Attributs

### Attributs Globaux

- [Attributs conditionnels](/fr/SVG/Attribute#ConditionalProccessing "fr/SVG/Attribute#ConditionalProccessing") »
- [Attributs centraux](/fr/SVG/Attribute#Core "fr/SVG/Attribute#Core") »
- [Attributs d'événements graphiques](/fr/SVG/Attribute#GraphicalEvent "fr/SVG/Attribute#GraphicalEvent") »
- [Attributs de présentation](/fr/SVG/Attribute#Presentation "fr/SVG/Attribute#Presentation") »
- {{ SVGAttr("class") }}
- {{ SVGAttr("style") }}
- {{ SVGAttr("externalResourcesRequired") }}
- {{ SVGAttr("transform") }}

### Attributs spécifiques

- {{ SVGAttr("cx") }}
- {{ SVGAttr("cy") }}
- {{ SVGAttr("r") }}

## Interface DOM

Cet élément implémente l'interface {{ domxref("SVGCircleElement") }}.

## Compatibilité avec les navigateurs

{{Compat("svg.elements.circle")}}

## Corrélat

- {{ SVGElement("ellipse") }}
- {{ SVGElement("rect") }}