From 7040e4bc9c98e0c50ce903a5cbeeabeda2ed908a Mon Sep 17 00:00:00 2001 From: julieng Date: Mon, 1 Nov 2021 07:51:27 +0100 Subject: move *.html to *.md --- files/fr/web/svg/element/a/index.html | 131 ---------- files/fr/web/svg/element/a/index.md | 131 ++++++++++ files/fr/web/svg/element/altglyph/index.html | 82 ------ files/fr/web/svg/element/altglyph/index.md | 82 ++++++ files/fr/web/svg/element/altglyphdef/index.html | 42 --- files/fr/web/svg/element/altglyphdef/index.md | 42 +++ files/fr/web/svg/element/altglyphitem/index.html | 44 ---- files/fr/web/svg/element/altglyphitem/index.md | 44 ++++ files/fr/web/svg/element/animate/index.html | 107 -------- files/fr/web/svg/element/animate/index.md | 107 ++++++++ files/fr/web/svg/element/animatecolor/index.html | 93 ------- files/fr/web/svg/element/animatecolor/index.md | 93 +++++++ files/fr/web/svg/element/animatemotion/index.html | 109 -------- files/fr/web/svg/element/animatemotion/index.md | 109 ++++++++ .../fr/web/svg/element/animatetransform/index.html | 93 ------- files/fr/web/svg/element/animatetransform/index.md | 93 +++++++ files/fr/web/svg/element/circle/index.html | 66 ----- files/fr/web/svg/element/circle/index.md | 66 +++++ files/fr/web/svg/element/clippath/index.html | 110 -------- files/fr/web/svg/element/clippath/index.md | 110 ++++++++ files/fr/web/svg/element/defs/index.html | 83 ------ files/fr/web/svg/element/defs/index.md | 83 ++++++ files/fr/web/svg/element/desc/index.html | 46 ---- files/fr/web/svg/element/desc/index.md | 46 ++++ files/fr/web/svg/element/ellipse/index.html | 131 ---------- files/fr/web/svg/element/ellipse/index.md | 131 ++++++++++ files/fr/web/svg/element/feblend/index.html | 115 -------- files/fr/web/svg/element/feblend/index.md | 115 ++++++++ files/fr/web/svg/element/fecolormatrix/index.html | 161 ------------ files/fr/web/svg/element/fecolormatrix/index.md | 161 ++++++++++++ .../web/svg/element/fecomponenttransfer/index.html | 163 ------------ .../web/svg/element/fecomponenttransfer/index.md | 163 ++++++++++++ files/fr/web/svg/element/fecomposite/index.html | 286 -------------------- files/fr/web/svg/element/fecomposite/index.md | 286 ++++++++++++++++++++ .../fr/web/svg/element/feconvolvematrix/index.html | 167 ------------ files/fr/web/svg/element/feconvolvematrix/index.md | 167 ++++++++++++ .../web/svg/element/fediffuselighting/index.html | 161 ------------ .../fr/web/svg/element/fediffuselighting/index.md | 161 ++++++++++++ .../web/svg/element/fedisplacementmap/index.html | 117 --------- .../fr/web/svg/element/fedisplacementmap/index.md | 117 +++++++++ files/fr/web/svg/element/fedistantlight/index.html | 77 ------ files/fr/web/svg/element/fedistantlight/index.md | 77 ++++++ files/fr/web/svg/element/fedropshadow/index.html | 108 -------- files/fr/web/svg/element/fedropshadow/index.md | 108 ++++++++ files/fr/web/svg/element/feflood/index.html | 108 -------- files/fr/web/svg/element/feflood/index.md | 108 ++++++++ files/fr/web/svg/element/fefunca/index.html | 74 ------ files/fr/web/svg/element/fefunca/index.md | 74 ++++++ files/fr/web/svg/element/fefuncb/index.html | 74 ------ files/fr/web/svg/element/fefuncb/index.md | 74 ++++++ files/fr/web/svg/element/fefuncg/index.html | 74 ------ files/fr/web/svg/element/fefuncg/index.md | 74 ++++++ files/fr/web/svg/element/fefuncr/index.html | 74 ------ files/fr/web/svg/element/fefuncr/index.md | 74 ++++++ files/fr/web/svg/element/fegaussianblur/index.html | 135 ---------- files/fr/web/svg/element/fegaussianblur/index.md | 135 ++++++++++ files/fr/web/svg/element/feimage/index.html | 109 -------- files/fr/web/svg/element/feimage/index.md | 109 ++++++++ files/fr/web/svg/element/femerge/index.html | 111 -------- files/fr/web/svg/element/femerge/index.md | 111 ++++++++ files/fr/web/svg/element/femergenode/index.html | 98 ------- files/fr/web/svg/element/femergenode/index.md | 98 +++++++ files/fr/web/svg/element/femorphology/index.html | 163 ------------ files/fr/web/svg/element/femorphology/index.md | 163 ++++++++++++ files/fr/web/svg/element/feoffset/index.html | 110 -------- files/fr/web/svg/element/feoffset/index.md | 110 ++++++++ files/fr/web/svg/element/fepointlight/index.html | 103 -------- files/fr/web/svg/element/fepointlight/index.md | 103 ++++++++ .../web/svg/element/fespecularlighting/index.html | 117 --------- .../fr/web/svg/element/fespecularlighting/index.md | 117 +++++++++ files/fr/web/svg/element/fespotlight/index.html | 108 -------- files/fr/web/svg/element/fespotlight/index.md | 108 ++++++++ files/fr/web/svg/element/fetile/index.html | 113 -------- files/fr/web/svg/element/fetile/index.md | 113 ++++++++ files/fr/web/svg/element/feturbulence/index.html | 111 -------- files/fr/web/svg/element/feturbulence/index.md | 111 ++++++++ files/fr/web/svg/element/filter/index.html | 118 --------- files/fr/web/svg/element/filter/index.md | 118 +++++++++ files/fr/web/svg/element/foreignobject/index.html | 117 --------- files/fr/web/svg/element/foreignobject/index.md | 117 +++++++++ files/fr/web/svg/element/g/index.html | 83 ------ files/fr/web/svg/element/g/index.md | 83 ++++++ files/fr/web/svg/element/hkern/index.html | 50 ---- files/fr/web/svg/element/hkern/index.md | 50 ++++ files/fr/web/svg/element/image/index.html | 60 ----- files/fr/web/svg/element/image/index.md | 60 +++++ files/fr/web/svg/element/index.html | 291 --------------------- files/fr/web/svg/element/index.md | 291 +++++++++++++++++++++ files/fr/web/svg/element/line/index.html | 71 ----- files/fr/web/svg/element/line/index.md | 71 +++++ files/fr/web/svg/element/lineargradient/index.html | 98 ------- files/fr/web/svg/element/lineargradient/index.md | 98 +++++++ files/fr/web/svg/element/marker/index.html | 131 ---------- files/fr/web/svg/element/marker/index.md | 131 ++++++++++ files/fr/web/svg/element/mask/index.html | 112 -------- files/fr/web/svg/element/mask/index.md | 112 ++++++++ files/fr/web/svg/element/metadata/index.html | 61 ----- files/fr/web/svg/element/metadata/index.md | 61 +++++ files/fr/web/svg/element/mpath/index.html | 106 -------- files/fr/web/svg/element/mpath/index.md | 106 ++++++++ files/fr/web/svg/element/path/index.html | 69 ----- files/fr/web/svg/element/path/index.md | 69 +++++ files/fr/web/svg/element/pattern/index.html | 99 ------- files/fr/web/svg/element/pattern/index.md | 99 +++++++ files/fr/web/svg/element/polygon/index.html | 78 ------ files/fr/web/svg/element/polygon/index.md | 78 ++++++ files/fr/web/svg/element/polyline/index.html | 129 --------- files/fr/web/svg/element/polyline/index.md | 129 +++++++++ files/fr/web/svg/element/radialgradient/index.html | 103 -------- files/fr/web/svg/element/radialgradient/index.md | 103 ++++++++ files/fr/web/svg/element/rect/index.html | 72 ----- files/fr/web/svg/element/rect/index.md | 72 +++++ files/fr/web/svg/element/stop/index.html | 98 ------- files/fr/web/svg/element/stop/index.md | 98 +++++++ files/fr/web/svg/element/style/index.html | 92 ------- files/fr/web/svg/element/style/index.md | 92 +++++++ files/fr/web/svg/element/svg/index.html | 106 -------- files/fr/web/svg/element/svg/index.md | 106 ++++++++ files/fr/web/svg/element/switch/index.html | 91 ------- files/fr/web/svg/element/switch/index.md | 91 +++++++ files/fr/web/svg/element/symbol/index.html | 117 --------- files/fr/web/svg/element/symbol/index.md | 117 +++++++++ files/fr/web/svg/element/text/index.html | 111 -------- files/fr/web/svg/element/text/index.md | 111 ++++++++ files/fr/web/svg/element/title/index.html | 84 ------ files/fr/web/svg/element/title/index.md | 84 ++++++ files/fr/web/svg/element/tspan/index.html | 100 ------- files/fr/web/svg/element/tspan/index.md | 100 +++++++ files/fr/web/svg/element/use/index.html | 104 -------- files/fr/web/svg/element/use/index.md | 104 ++++++++ 130 files changed, 6925 insertions(+), 6925 deletions(-) delete mode 100644 files/fr/web/svg/element/a/index.html create mode 100644 files/fr/web/svg/element/a/index.md delete mode 100644 files/fr/web/svg/element/altglyph/index.html create mode 100644 files/fr/web/svg/element/altglyph/index.md delete mode 100644 files/fr/web/svg/element/altglyphdef/index.html create mode 100644 files/fr/web/svg/element/altglyphdef/index.md delete mode 100644 files/fr/web/svg/element/altglyphitem/index.html create mode 100644 files/fr/web/svg/element/altglyphitem/index.md delete mode 100644 files/fr/web/svg/element/animate/index.html create mode 100644 files/fr/web/svg/element/animate/index.md delete mode 100644 files/fr/web/svg/element/animatecolor/index.html create mode 100644 files/fr/web/svg/element/animatecolor/index.md delete mode 100644 files/fr/web/svg/element/animatemotion/index.html create mode 100644 files/fr/web/svg/element/animatemotion/index.md delete mode 100644 files/fr/web/svg/element/animatetransform/index.html create mode 100644 files/fr/web/svg/element/animatetransform/index.md delete mode 100644 files/fr/web/svg/element/circle/index.html create mode 100644 files/fr/web/svg/element/circle/index.md delete mode 100644 files/fr/web/svg/element/clippath/index.html create mode 100644 files/fr/web/svg/element/clippath/index.md delete mode 100644 files/fr/web/svg/element/defs/index.html create mode 100644 files/fr/web/svg/element/defs/index.md delete mode 100644 files/fr/web/svg/element/desc/index.html create mode 100644 files/fr/web/svg/element/desc/index.md delete mode 100644 files/fr/web/svg/element/ellipse/index.html create mode 100644 files/fr/web/svg/element/ellipse/index.md delete mode 100644 files/fr/web/svg/element/feblend/index.html create mode 100644 files/fr/web/svg/element/feblend/index.md delete mode 100644 files/fr/web/svg/element/fecolormatrix/index.html create mode 100644 files/fr/web/svg/element/fecolormatrix/index.md delete mode 100644 files/fr/web/svg/element/fecomponenttransfer/index.html create mode 100644 files/fr/web/svg/element/fecomponenttransfer/index.md delete mode 100644 files/fr/web/svg/element/fecomposite/index.html create mode 100644 files/fr/web/svg/element/fecomposite/index.md delete mode 100644 files/fr/web/svg/element/feconvolvematrix/index.html create mode 100644 files/fr/web/svg/element/feconvolvematrix/index.md delete mode 100644 files/fr/web/svg/element/fediffuselighting/index.html create mode 100644 files/fr/web/svg/element/fediffuselighting/index.md delete mode 100644 files/fr/web/svg/element/fedisplacementmap/index.html create mode 100644 files/fr/web/svg/element/fedisplacementmap/index.md delete mode 100644 files/fr/web/svg/element/fedistantlight/index.html create mode 100644 files/fr/web/svg/element/fedistantlight/index.md delete mode 100644 files/fr/web/svg/element/fedropshadow/index.html create mode 100644 files/fr/web/svg/element/fedropshadow/index.md delete mode 100644 files/fr/web/svg/element/feflood/index.html create mode 100644 files/fr/web/svg/element/feflood/index.md delete mode 100644 files/fr/web/svg/element/fefunca/index.html create mode 100644 files/fr/web/svg/element/fefunca/index.md delete mode 100644 files/fr/web/svg/element/fefuncb/index.html create mode 100644 files/fr/web/svg/element/fefuncb/index.md delete mode 100644 files/fr/web/svg/element/fefuncg/index.html create mode 100644 files/fr/web/svg/element/fefuncg/index.md delete mode 100644 files/fr/web/svg/element/fefuncr/index.html create mode 100644 files/fr/web/svg/element/fefuncr/index.md delete mode 100644 files/fr/web/svg/element/fegaussianblur/index.html create mode 100644 files/fr/web/svg/element/fegaussianblur/index.md delete mode 100644 files/fr/web/svg/element/feimage/index.html create mode 100644 files/fr/web/svg/element/feimage/index.md delete mode 100644 files/fr/web/svg/element/femerge/index.html create mode 100644 files/fr/web/svg/element/femerge/index.md delete mode 100644 files/fr/web/svg/element/femergenode/index.html create mode 100644 files/fr/web/svg/element/femergenode/index.md delete mode 100644 files/fr/web/svg/element/femorphology/index.html create mode 100644 files/fr/web/svg/element/femorphology/index.md delete mode 100644 files/fr/web/svg/element/feoffset/index.html create mode 100644 files/fr/web/svg/element/feoffset/index.md delete mode 100644 files/fr/web/svg/element/fepointlight/index.html create mode 100644 files/fr/web/svg/element/fepointlight/index.md delete mode 100644 files/fr/web/svg/element/fespecularlighting/index.html create mode 100644 files/fr/web/svg/element/fespecularlighting/index.md delete mode 100644 files/fr/web/svg/element/fespotlight/index.html create mode 100644 files/fr/web/svg/element/fespotlight/index.md delete mode 100644 files/fr/web/svg/element/fetile/index.html create mode 100644 files/fr/web/svg/element/fetile/index.md delete mode 100644 files/fr/web/svg/element/feturbulence/index.html create mode 100644 files/fr/web/svg/element/feturbulence/index.md delete mode 100644 files/fr/web/svg/element/filter/index.html create mode 100644 files/fr/web/svg/element/filter/index.md delete mode 100644 files/fr/web/svg/element/foreignobject/index.html create mode 100644 files/fr/web/svg/element/foreignobject/index.md delete mode 100644 files/fr/web/svg/element/g/index.html create mode 100644 files/fr/web/svg/element/g/index.md delete mode 100644 files/fr/web/svg/element/hkern/index.html create mode 100644 files/fr/web/svg/element/hkern/index.md delete mode 100644 files/fr/web/svg/element/image/index.html create mode 100644 files/fr/web/svg/element/image/index.md delete mode 100644 files/fr/web/svg/element/index.html create mode 100644 files/fr/web/svg/element/index.md delete mode 100644 files/fr/web/svg/element/line/index.html create mode 100644 files/fr/web/svg/element/line/index.md delete mode 100644 files/fr/web/svg/element/lineargradient/index.html create mode 100644 files/fr/web/svg/element/lineargradient/index.md delete mode 100644 files/fr/web/svg/element/marker/index.html create mode 100644 files/fr/web/svg/element/marker/index.md delete mode 100644 files/fr/web/svg/element/mask/index.html create mode 100644 files/fr/web/svg/element/mask/index.md delete mode 100644 files/fr/web/svg/element/metadata/index.html create mode 100644 files/fr/web/svg/element/metadata/index.md delete mode 100644 files/fr/web/svg/element/mpath/index.html create mode 100644 files/fr/web/svg/element/mpath/index.md delete mode 100644 files/fr/web/svg/element/path/index.html create mode 100644 files/fr/web/svg/element/path/index.md delete mode 100644 files/fr/web/svg/element/pattern/index.html create mode 100644 files/fr/web/svg/element/pattern/index.md delete mode 100644 files/fr/web/svg/element/polygon/index.html create mode 100644 files/fr/web/svg/element/polygon/index.md delete mode 100644 files/fr/web/svg/element/polyline/index.html create mode 100644 files/fr/web/svg/element/polyline/index.md delete mode 100644 files/fr/web/svg/element/radialgradient/index.html create mode 100644 files/fr/web/svg/element/radialgradient/index.md delete mode 100644 files/fr/web/svg/element/rect/index.html create mode 100644 files/fr/web/svg/element/rect/index.md delete mode 100644 files/fr/web/svg/element/stop/index.html create mode 100644 files/fr/web/svg/element/stop/index.md delete mode 100644 files/fr/web/svg/element/style/index.html create mode 100644 files/fr/web/svg/element/style/index.md delete mode 100644 files/fr/web/svg/element/svg/index.html create mode 100644 files/fr/web/svg/element/svg/index.md delete mode 100644 files/fr/web/svg/element/switch/index.html create mode 100644 files/fr/web/svg/element/switch/index.md delete mode 100644 files/fr/web/svg/element/symbol/index.html create mode 100644 files/fr/web/svg/element/symbol/index.md delete mode 100644 files/fr/web/svg/element/text/index.html create mode 100644 files/fr/web/svg/element/text/index.md delete mode 100644 files/fr/web/svg/element/title/index.html create mode 100644 files/fr/web/svg/element/title/index.md delete mode 100644 files/fr/web/svg/element/tspan/index.html create mode 100644 files/fr/web/svg/element/tspan/index.md delete mode 100644 files/fr/web/svg/element/use/index.html create mode 100644 files/fr/web/svg/element/use/index.md (limited to 'files/fr/web/svg/element') diff --git a/files/fr/web/svg/element/a/index.html b/files/fr/web/svg/element/a/index.html deleted file mode 100644 index a3d70a3edd..0000000000 --- a/files/fr/web/svg/element/a/index.html +++ /dev/null @@ -1,131 +0,0 @@ ---- -title: a -slug: Web/SVG/Element/a -tags: - - Element - - SVG - - SVG Conteneur -translation_of: Web/SVG/Element/a ---- -
{{SVGRef}}
- -

L'élément SVG <a> crée un hyperlien vers d'autres pages web, fichiers, emplacements dans la page en cours, adresses email, ou toute autre URL.

- -

En SVG, l'élément <a> est un conteneur, ce qui veut dire que vous pouvez créer un lien autour du texte comme en HTML, mais que vous pouvez aussi créer un lien autour de n'importe quelle forme.

- -

Exemple

- - - - -
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <!-- Un lien autour d'une forme -->
-  <a href="/docs/Web/SVG/Element/circle">
-    <circle cx="50" cy="40" r="35"/>
-  </a>
-
-  <!-- Un lien autour d'un texte -->
-  <a href="/docs/Web/SVG/Element/circle">
-    <text x="50" y="90" text-anchor="middle">
-      &lt;circle&gt;
-    </text>
-  </a>
-</svg>
- -
/* Comme SVG ne fournit pas de style visuel par défaut pour les liens,
-   il est en recommendé d'en ajouter manuellement */
-
-@namespace svgns url(http://www.w3.org/2000/svg);
-
-svgns|a {
-  cursor: pointer;
-}
-
-svgns|a text {
-  fill: blue; /* Même pour du texte, SVG utilise fill plutôt que color */
-  text-decoration: underline;
-}
-
-svgns|a:hover, svgns|a:active {
-  outline: dotted 1px blue;
-}
- -

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

- -
-

Attention : Étant donné que cet élément partage son nom de balise avec l'élément HTML <a>, la sélection de "a" avec CSS ou querySelector peut s'appliquer au mauvais type d'élément. La règle @namespace permet de faire la distinction entre les deux.

-
- -

Attributs

- -

 

- -

Attributs globaux

- - - -

Attributs spécifiques

- - - -

Contexte d'utilisation

- -

{{svginfo}}

- -

Interface DOM

- -

Cet élément implémente l'interface SVGAElement.

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Referrer Policy', '#referrer-policy-delivery-referrer-attribute', 'referrer attribute')}}{{Spec2('Referrer Policy')}}Ajoute l'attribut referrerpolicy.
{{SpecName("SVG2", "linking.html#Links", "<a>")}}{{Spec2("SVG2")}}Remplace l'attribut {{SVGAttr("xlink:href")}} par {{SVGAttr("href")}}
{{SpecName("SVG1.1", "linking.html#Links", "<a>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

diff --git a/files/fr/web/svg/element/a/index.md b/files/fr/web/svg/element/a/index.md new file mode 100644 index 0000000000..a3d70a3edd --- /dev/null +++ b/files/fr/web/svg/element/a/index.md @@ -0,0 +1,131 @@ +--- +title: a +slug: Web/SVG/Element/a +tags: + - Element + - SVG + - SVG Conteneur +translation_of: Web/SVG/Element/a +--- +
{{SVGRef}}
+ +

L'élément SVG <a> crée un hyperlien vers d'autres pages web, fichiers, emplacements dans la page en cours, adresses email, ou toute autre URL.

+ +

En SVG, l'élément <a> est un conteneur, ce qui veut dire que vous pouvez créer un lien autour du texte comme en HTML, mais que vous pouvez aussi créer un lien autour de n'importe quelle forme.

+ +

Exemple

+ + + + +
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+  <!-- Un lien autour d'une forme -->
+  <a href="/docs/Web/SVG/Element/circle">
+    <circle cx="50" cy="40" r="35"/>
+  </a>
+
+  <!-- Un lien autour d'un texte -->
+  <a href="/docs/Web/SVG/Element/circle">
+    <text x="50" y="90" text-anchor="middle">
+      &lt;circle&gt;
+    </text>
+  </a>
+</svg>
+ +
/* Comme SVG ne fournit pas de style visuel par défaut pour les liens,
+   il est en recommendé d'en ajouter manuellement */
+
+@namespace svgns url(http://www.w3.org/2000/svg);
+
+svgns|a {
+  cursor: pointer;
+}
+
+svgns|a text {
+  fill: blue; /* Même pour du texte, SVG utilise fill plutôt que color */
+  text-decoration: underline;
+}
+
+svgns|a:hover, svgns|a:active {
+  outline: dotted 1px blue;
+}
+ +

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

+ +
+

Attention : Étant donné que cet élément partage son nom de balise avec l'élément HTML <a>, la sélection de "a" avec CSS ou querySelector peut s'appliquer au mauvais type d'élément. La règle @namespace permet de faire la distinction entre les deux.

+
+ +

Attributs

+ +

 

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ + + +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Interface DOM

+ +

Cet élément implémente l'interface SVGAElement.

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Referrer Policy', '#referrer-policy-delivery-referrer-attribute', 'referrer attribute')}}{{Spec2('Referrer Policy')}}Ajoute l'attribut referrerpolicy.
{{SpecName("SVG2", "linking.html#Links", "<a>")}}{{Spec2("SVG2")}}Remplace l'attribut {{SVGAttr("xlink:href")}} par {{SVGAttr("href")}}
{{SpecName("SVG1.1", "linking.html#Links", "<a>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

diff --git a/files/fr/web/svg/element/altglyph/index.html b/files/fr/web/svg/element/altglyph/index.html deleted file mode 100644 index 84e3dc7422..0000000000 --- a/files/fr/web/svg/element/altglyph/index.html +++ /dev/null @@ -1,82 +0,0 @@ ---- -title: altGlyph -slug: Web/SVG/Element/altGlyph -tags: - - Element - - Reference - - SVG -translation_of: Web/SVG/Element/altGlyph ---- -
{{SVGRef}}{{deprecated_header}}
- -

L'élément altGlyph permet la selection des glyphes utilisées pour restituer un caractère de donnée.
-  

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Exemple

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- - - -

Interface DOM

- -

Cet élément implémente l'interface SVGAltGlyphElement.

- -

Spécifications

- - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('SVG1.1', 'text.html#AltGlyphElement', '<altGlyph>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- - diff --git a/files/fr/web/svg/element/altglyph/index.md b/files/fr/web/svg/element/altglyph/index.md new file mode 100644 index 0000000000..84e3dc7422 --- /dev/null +++ b/files/fr/web/svg/element/altglyph/index.md @@ -0,0 +1,82 @@ +--- +title: altGlyph +slug: Web/SVG/Element/altGlyph +tags: + - Element + - Reference + - SVG +translation_of: Web/SVG/Element/altGlyph +--- +
{{SVGRef}}{{deprecated_header}}
+ +

L'élément altGlyph permet la selection des glyphes utilisées pour restituer un caractère de donnée.
+  

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Exemple

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ + + +

Interface DOM

+ +

Cet élément implémente l'interface SVGAltGlyphElement.

+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('SVG1.1', 'text.html#AltGlyphElement', '<altGlyph>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ + diff --git a/files/fr/web/svg/element/altglyphdef/index.html b/files/fr/web/svg/element/altglyphdef/index.html deleted file mode 100644 index a326de0562..0000000000 --- a/files/fr/web/svg/element/altglyphdef/index.html +++ /dev/null @@ -1,42 +0,0 @@ ---- -title: altGlyphDef -slug: Web/SVG/Element/altGlyphDef -tags: - - Element - - Reference - - SVG -translation_of: Web/SVG/Element/altGlyphDef ---- -
{{SVGRef}}{{deprecated_header}}
- -

L'élément altGlyphDef défini une représentation de substitution pour les glyphes.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Exemple

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -

Aucun

- -

Interface DOM

- -

Cet élément implémente l'interface SVGAltGlyphDefElement.

- -

Voir également

- - diff --git a/files/fr/web/svg/element/altglyphdef/index.md b/files/fr/web/svg/element/altglyphdef/index.md new file mode 100644 index 0000000000..a326de0562 --- /dev/null +++ b/files/fr/web/svg/element/altglyphdef/index.md @@ -0,0 +1,42 @@ +--- +title: altGlyphDef +slug: Web/SVG/Element/altGlyphDef +tags: + - Element + - Reference + - SVG +translation_of: Web/SVG/Element/altGlyphDef +--- +
{{SVGRef}}{{deprecated_header}}
+ +

L'élément altGlyphDef défini une représentation de substitution pour les glyphes.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Exemple

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +

Aucun

+ +

Interface DOM

+ +

Cet élément implémente l'interface SVGAltGlyphDefElement.

+ +

Voir également

+ + diff --git a/files/fr/web/svg/element/altglyphitem/index.html b/files/fr/web/svg/element/altglyphitem/index.html deleted file mode 100644 index 2302fb57fa..0000000000 --- a/files/fr/web/svg/element/altglyphitem/index.html +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: altGlyphItem -slug: Web/SVG/Element/altGlyphItem -tags: - - Element - - Reference - - SVG -translation_of: Web/SVG/Element/altGlyphItem ---- -
{{SVGRef}}{{deprecated_header}}
- -

L'élément altGlyphItem fournit un ensemble de candidats pour la substitution de glyphes par l'élément {{ SVGElement("altGlyph") }}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Exemple

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -

Aucun

- -

Interface DOM

- -

Cet élément implémente l'interface SVGAltGlyphItemElement.

- -

 

- -

Voir également

- - diff --git a/files/fr/web/svg/element/altglyphitem/index.md b/files/fr/web/svg/element/altglyphitem/index.md new file mode 100644 index 0000000000..2302fb57fa --- /dev/null +++ b/files/fr/web/svg/element/altglyphitem/index.md @@ -0,0 +1,44 @@ +--- +title: altGlyphItem +slug: Web/SVG/Element/altGlyphItem +tags: + - Element + - Reference + - SVG +translation_of: Web/SVG/Element/altGlyphItem +--- +
{{SVGRef}}{{deprecated_header}}
+ +

L'élément altGlyphItem fournit un ensemble de candidats pour la substitution de glyphes par l'élément {{ SVGElement("altGlyph") }}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Exemple

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +

Aucun

+ +

Interface DOM

+ +

Cet élément implémente l'interface SVGAltGlyphItemElement.

+ +

 

+ +

Voir également

+ + diff --git a/files/fr/web/svg/element/animate/index.html b/files/fr/web/svg/element/animate/index.html deleted file mode 100644 index 49b8564999..0000000000 --- a/files/fr/web/svg/element/animate/index.html +++ /dev/null @@ -1,107 +0,0 @@ ---- -title: animate -slug: Web/SVG/Element/animate -tags: - - Animation SVG - - Element - - SVG -translation_of: Web/SVG/Element/animate ---- -
{{SVGRef}}
- -

L'élément SVG <animate> est utilisé pour animer un attribut ou une propriété d'un élément au fil du temps. Il est normalement inséré dans l'élément cible ou référencé par l'attribut href de l'élément.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- - - -

Interface DOM

- -

Cet élément implémente l'interface SVGAnimateElement.

- -

Exemple

- -

SVG

- -
<?xml version="1.0"?>
-<svg width="120" height="120" viewBox="0 0 120 120" version="1.1"
-     xmlns="http://www.w3.org/2000/svg">
-
-  <rect x="10" y="10" width="100" height="100">
-    <animate attributeType="XML" attributeName="x" from="-100" to="120"
-        dur="10s" repeatCount="indefinite"/>
-  </rect>
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 120, 120)}}

- -

Problèmes d'accessibilité

- -

Les animations qui clignotent peuvent être problématiques pour les personnes ayant des problèmes cognitifs tels que le Trouble du Déficit de l'Attention avec ou sans Hyperactivité (TDAH). De plus, certains types de mouvements peuvent être un élément déclencheur pour les personnes présentant un risque de troubles vestibulaires, d'épilepsie, de migraine et de sensibilité à la scotopie.

- -

Envisagez de créer un mécanisme permettant de suspendre ou de désactiver l'animation, ainsi que d'utiliser la requête reduced-motion pour améliorer l'expérience des utilisateurs ayant définit pour préférence de ne pas avoir d'animations.

- - - -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("SVG Animations 2", "#AnimateElement", "<animate>")}}{{Spec2("SVG Animations 2")}}Aucun changement
{{SpecName("SVG1.1", "animate.html#AnimateElement", "<animate>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

diff --git a/files/fr/web/svg/element/animate/index.md b/files/fr/web/svg/element/animate/index.md new file mode 100644 index 0000000000..49b8564999 --- /dev/null +++ b/files/fr/web/svg/element/animate/index.md @@ -0,0 +1,107 @@ +--- +title: animate +slug: Web/SVG/Element/animate +tags: + - Animation SVG + - Element + - SVG +translation_of: Web/SVG/Element/animate +--- +
{{SVGRef}}
+ +

L'élément SVG <animate> est utilisé pour animer un attribut ou une propriété d'un élément au fil du temps. Il est normalement inséré dans l'élément cible ou référencé par l'attribut href de l'élément.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ + + +

Interface DOM

+ +

Cet élément implémente l'interface SVGAnimateElement.

+ +

Exemple

+ +

SVG

+ +
<?xml version="1.0"?>
+<svg width="120" height="120" viewBox="0 0 120 120" version="1.1"
+     xmlns="http://www.w3.org/2000/svg">
+
+  <rect x="10" y="10" width="100" height="100">
+    <animate attributeType="XML" attributeName="x" from="-100" to="120"
+        dur="10s" repeatCount="indefinite"/>
+  </rect>
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 120, 120)}}

+ +

Problèmes d'accessibilité

+ +

Les animations qui clignotent peuvent être problématiques pour les personnes ayant des problèmes cognitifs tels que le Trouble du Déficit de l'Attention avec ou sans Hyperactivité (TDAH). De plus, certains types de mouvements peuvent être un élément déclencheur pour les personnes présentant un risque de troubles vestibulaires, d'épilepsie, de migraine et de sensibilité à la scotopie.

+ +

Envisagez de créer un mécanisme permettant de suspendre ou de désactiver l'animation, ainsi que d'utiliser la requête reduced-motion pour améliorer l'expérience des utilisateurs ayant définit pour préférence de ne pas avoir d'animations.

+ + + +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("SVG Animations 2", "#AnimateElement", "<animate>")}}{{Spec2("SVG Animations 2")}}Aucun changement
{{SpecName("SVG1.1", "animate.html#AnimateElement", "<animate>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

diff --git a/files/fr/web/svg/element/animatecolor/index.html b/files/fr/web/svg/element/animatecolor/index.html deleted file mode 100644 index dd2d640ab4..0000000000 --- a/files/fr/web/svg/element/animatecolor/index.html +++ /dev/null @@ -1,93 +0,0 @@ ---- -title: animateColor -slug: Web/SVG/Element/animateColor -tags: - - Animation SVG - - Element - - SVG -translation_of: Web/SVG/Element/animateColor ---- -
{{SVGRef}}{{deprecated_header}}
- -
-

Attention : Cet élément est déprécié depuis SVG 1.1 Deuxième édition et peut etre retiré dans une prochaine version de SVG. Il ne fournis pas de fonctionnalités non disponible en utilisant l'élément {{ SVGElement("animate") }}. Il n'est pas implémenté dans Firefox ni dans Internet Explorer. Il est préférable d'utiliser l'élément {{ SVGElement("animate") }} à la place.

-
- -

L'élément <animateColor> spécifie une transformation de couleur à travers le temps.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- - - -

Interface DOM

- -

Cet élément implémente l'interface SVGAnimateColorElement.

- -

Exemple

- -

SVG

- -
<svg width="120" height="120" xmlns="http://www.w3.org/2000/svg">
-  <circle cx="60" cy="60" r="50">
-    <animateColor attributeName="fill" attributeType="XML"
-        from="black" to="red" dur="6s" repeatCount="indefinite"/>
-  </circle>
-</svg>
-
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 120, 120)}}

- -

Spécifications

- - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("SVG1.1", "animate.html#AnimateColorElement", "<animateColor>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir également

- - diff --git a/files/fr/web/svg/element/animatecolor/index.md b/files/fr/web/svg/element/animatecolor/index.md new file mode 100644 index 0000000000..dd2d640ab4 --- /dev/null +++ b/files/fr/web/svg/element/animatecolor/index.md @@ -0,0 +1,93 @@ +--- +title: animateColor +slug: Web/SVG/Element/animateColor +tags: + - Animation SVG + - Element + - SVG +translation_of: Web/SVG/Element/animateColor +--- +
{{SVGRef}}{{deprecated_header}}
+ +
+

Attention : Cet élément est déprécié depuis SVG 1.1 Deuxième édition et peut etre retiré dans une prochaine version de SVG. Il ne fournis pas de fonctionnalités non disponible en utilisant l'élément {{ SVGElement("animate") }}. Il n'est pas implémenté dans Firefox ni dans Internet Explorer. Il est préférable d'utiliser l'élément {{ SVGElement("animate") }} à la place.

+
+ +

L'élément <animateColor> spécifie une transformation de couleur à travers le temps.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ + + +

Interface DOM

+ +

Cet élément implémente l'interface SVGAnimateColorElement.

+ +

Exemple

+ +

SVG

+ +
<svg width="120" height="120" xmlns="http://www.w3.org/2000/svg">
+  <circle cx="60" cy="60" r="50">
+    <animateColor attributeName="fill" attributeType="XML"
+        from="black" to="red" dur="6s" repeatCount="indefinite"/>
+  </circle>
+</svg>
+
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 120, 120)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("SVG1.1", "animate.html#AnimateColorElement", "<animateColor>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir également

+ + diff --git a/files/fr/web/svg/element/animatemotion/index.html b/files/fr/web/svg/element/animatemotion/index.html deleted file mode 100644 index d5bc8130ca..0000000000 --- a/files/fr/web/svg/element/animatemotion/index.html +++ /dev/null @@ -1,109 +0,0 @@ ---- -title: animateMotion -slug: Web/SVG/Element/animateMotion -tags: - - Animation SVG - - Element - - SVG -translation_of: Web/SVG/Element/animateMotion ---- -
{{SVGRef}}
- -

L'élément <animateMotion> permet d'animer un élément le long d'un chemin donné.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- - - -

Interface DOM

- -

Cet élément implémente l'interface SVGAnimateMotionElement.

- -

Exemple

- -

SVG

- -
<?xml version="1.0"?>
-<svg width="120" height="120" viewBox="0 0 120 120"
-    xmlns="http://www.w3.org/2000/svg" version="1.1"
-    xmlns:xlink="http://www.w3.org/1999/xlink">
-
-  <!-- Dessine le chemin en gris, avec 2 cercles aux extrémités -->
-  <path d="M10,110 A120,120 -45 0,1 110 10 A120,120 -45 0,1 10,110"
-      stroke="lightgrey" stroke-width="2"
-      fill="none" id="theMotionPath"/>
-  <circle cx="10" cy="110" r="3" fill="lightgrey"  />
-  <circle cx="110" cy="10" r="3" fill="lightgrey"  />
-
-  <!-- Cercle rouge qui sera déplacé le long du chemin. -->
-  <circle cx="" cy="" r="5" fill="red">
-
-    <!-- Définit l'animation -->
-    <animateMotion dur="6s" repeatCount="indefinite">
-      <mpath xlink:href="#theMotionPath"/>
-    </animateMotion>
-  </circle>
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 120, 120)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("SVG Animations 2", "#AnimateMotionElement", "<animateMotion>")}}{{Spec2("SVG Animations 2")}}Aucun changement
{{SpecName('SVG1.1', 'animate.html#AnimateMotionElement', '<animateMotion>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- - diff --git a/files/fr/web/svg/element/animatemotion/index.md b/files/fr/web/svg/element/animatemotion/index.md new file mode 100644 index 0000000000..d5bc8130ca --- /dev/null +++ b/files/fr/web/svg/element/animatemotion/index.md @@ -0,0 +1,109 @@ +--- +title: animateMotion +slug: Web/SVG/Element/animateMotion +tags: + - Animation SVG + - Element + - SVG +translation_of: Web/SVG/Element/animateMotion +--- +
{{SVGRef}}
+ +

L'élément <animateMotion> permet d'animer un élément le long d'un chemin donné.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ + + +

Interface DOM

+ +

Cet élément implémente l'interface SVGAnimateMotionElement.

+ +

Exemple

+ +

SVG

+ +
<?xml version="1.0"?>
+<svg width="120" height="120" viewBox="0 0 120 120"
+    xmlns="http://www.w3.org/2000/svg" version="1.1"
+    xmlns:xlink="http://www.w3.org/1999/xlink">
+
+  <!-- Dessine le chemin en gris, avec 2 cercles aux extrémités -->
+  <path d="M10,110 A120,120 -45 0,1 110 10 A120,120 -45 0,1 10,110"
+      stroke="lightgrey" stroke-width="2"
+      fill="none" id="theMotionPath"/>
+  <circle cx="10" cy="110" r="3" fill="lightgrey"  />
+  <circle cx="110" cy="10" r="3" fill="lightgrey"  />
+
+  <!-- Cercle rouge qui sera déplacé le long du chemin. -->
+  <circle cx="" cy="" r="5" fill="red">
+
+    <!-- Définit l'animation -->
+    <animateMotion dur="6s" repeatCount="indefinite">
+      <mpath xlink:href="#theMotionPath"/>
+    </animateMotion>
+  </circle>
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 120, 120)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("SVG Animations 2", "#AnimateMotionElement", "<animateMotion>")}}{{Spec2("SVG Animations 2")}}Aucun changement
{{SpecName('SVG1.1', 'animate.html#AnimateMotionElement', '<animateMotion>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ + diff --git a/files/fr/web/svg/element/animatetransform/index.html b/files/fr/web/svg/element/animatetransform/index.html deleted file mode 100644 index b572d797e3..0000000000 --- a/files/fr/web/svg/element/animatetransform/index.html +++ /dev/null @@ -1,93 +0,0 @@ ---- -title: animateTransform -slug: Web/SVG/Element/animateTransform -tags: - - Element - - SVG - - SVG Animation -translation_of: Web/SVG/Element/animateTransform ---- -
{{SVGRef}}
- -

L'élément <animateTransform> permet d'animer un élement en appliquant une transformation: translation, mise à l'échelle, rotation et/ou inclinaison.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Exemple

- -
<?xml version="1.0"?>
-<svg width="120" height="120"  viewBox="0 0 120 120"
-     xmlns="http://www.w3.org/2000/svg" version="1.1"
-     xmlns:xlink="http://www.w3.org/1999/xlink" >
-
-    <polygon points="60,30 90,90 30,90">
-        <animateTransform attributeName="transform"
-                          attributeType="XML"
-                          type="rotate"
-                          from="0 60 70"
-                          to="360 60 70"
-                          dur="10s"
-                          repeatCount="indefinite"/>
-    </polygon>
-</svg>
- -

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

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- - - -

Interface DOM

- -

Cet élément implémente l'interface SVGAnimateTransformElement.

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("SVG Animations 2", "#AnimateTransformElement", "<animateTransform>")}}{{Spec2("SVG Animations 2")}}Aucun changement
{{SpecName('SVG1.1', 'animate.html#AnimateTransformElement', '<animateTransform>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

diff --git a/files/fr/web/svg/element/animatetransform/index.md b/files/fr/web/svg/element/animatetransform/index.md new file mode 100644 index 0000000000..b572d797e3 --- /dev/null +++ b/files/fr/web/svg/element/animatetransform/index.md @@ -0,0 +1,93 @@ +--- +title: animateTransform +slug: Web/SVG/Element/animateTransform +tags: + - Element + - SVG + - SVG Animation +translation_of: Web/SVG/Element/animateTransform +--- +
{{SVGRef}}
+ +

L'élément <animateTransform> permet d'animer un élement en appliquant une transformation: translation, mise à l'échelle, rotation et/ou inclinaison.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Exemple

+ +
<?xml version="1.0"?>
+<svg width="120" height="120"  viewBox="0 0 120 120"
+     xmlns="http://www.w3.org/2000/svg" version="1.1"
+     xmlns:xlink="http://www.w3.org/1999/xlink" >
+
+    <polygon points="60,30 90,90 30,90">
+        <animateTransform attributeName="transform"
+                          attributeType="XML"
+                          type="rotate"
+                          from="0 60 70"
+                          to="360 60 70"
+                          dur="10s"
+                          repeatCount="indefinite"/>
+    </polygon>
+</svg>
+ +

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

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ + + +

Interface DOM

+ +

Cet élément implémente l'interface SVGAnimateTransformElement.

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("SVG Animations 2", "#AnimateTransformElement", "<animateTransform>")}}{{Spec2("SVG Animations 2")}}Aucun changement
{{SpecName('SVG1.1', 'animate.html#AnimateTransformElement', '<animateTransform>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

diff --git a/files/fr/web/svg/element/circle/index.html b/files/fr/web/svg/element/circle/index.html deleted file mode 100644 index 6fba0b5e8d..0000000000 --- a/files/fr/web/svg/element/circle/index.html +++ /dev/null @@ -1,66 +0,0 @@ ---- -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

- - - -
<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 spécifiques

- - - -

Interface DOM

- -

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

- -

Compatibilité avec les navigateurs

- -

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

- -

Corrélat

- - diff --git a/files/fr/web/svg/element/circle/index.md b/files/fr/web/svg/element/circle/index.md new file mode 100644 index 0000000000..6fba0b5e8d --- /dev/null +++ b/files/fr/web/svg/element/circle/index.md @@ -0,0 +1,66 @@ +--- +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

+ + + +
<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 spécifiques

+ + + +

Interface DOM

+ +

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

+ +

Compatibilité avec les navigateurs

+ +

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

+ +

Corrélat

+ + diff --git a/files/fr/web/svg/element/clippath/index.html b/files/fr/web/svg/element/clippath/index.html deleted file mode 100644 index 8ff3ec5a54..0000000000 --- a/files/fr/web/svg/element/clippath/index.html +++ /dev/null @@ -1,110 +0,0 @@ ---- -title: -slug: Web/SVG/Element/clipPath -tags: - - Element - - SVG -translation_of: Web/SVG/Element/clipPath ---- -
{{SVGRef}}
- -

L'élément SVG <clipPath> définit un détourage. Ce détourage peut par la suite être appliqué sur une forme en utilisant la propriété {{SVGAttr("clip-path")}}.

- -

Le détourage limite la zone dans laquelle l'élément sur lequel il est appliqué sera dessiné. Autrement dit, les parties de l'élément en dehors de la forme créée par le détourage ne seront pas affichées.

- -

Exemple

- - - -
<svg viewBox="0 0 100 100">
-  <clipPath id="myClip">
-    <!-- La forme créée par le détourage est un simple cercle. -->
-    <circle cx="40" cy="35" r="35" />
-  </clipPath>
-
-  <!-- Le coeur sans détourage, pour référence -->
-  <path id="heart" d="M10,30 A20,20,0,0,1,50,30 A20,20,0,0,1,90,30 Q90,60,50,90 Q10,60,10,30 Z" />
-
-  <!--
-    Le coeur avec détourage.
-    Seule la partie à l'intérieur du cercle est visible.
-  -->
-  <use clip-path="url(#myClip)" xlink:href="#heart" fill="red" />
-</svg>
- -
/* Animation CSS pour les navigateurs *
- * qui implémentent la propriété de géométrie r. */
-
-@keyframes openYourHeart {from {r: 0} to {r: 60px}}
-
-#myClip circle {
-  animation: openYourHeart 15s infinite;
-}
- -

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

- -

Sur le plan conceptuel, un détourage est un peu comme une zone d'affichage personnalisée pour l'élément sur lequel il est appliqué. Cela va limiter la zone dans laquelle l'élément est affiché, sans affecter sa géométrie (position, taille, etc).

- -

La zone de sélection d'un élément détouré (c'est à dire un élément qui référence un <clipPath> via la propriété {{SVGAttr("clip-path")}}, ou un de ses enfant) reste la même, comme s'il n'était pas tronqué.

- -

Par défaut, les événements de pointeur ne sont pas déclenchés sur les régions détourées (non visibles) d'une forme. Par exemple, un cercle avec un rayon de 10 qui est détouré à un cercle de rayon 5, ne recevra pas d'événement "click" en dehors de ce rayon de 5. Ce comportement peut être modifié avec la propriété {{cssxref("pointer-events")}}.

- -

Attributs

- -
-
{{SVGAttr("clipPathUnits")}}
-
Cet attribut définit le système de coordonnées pour le contenu de l'élément <clipPath>.
- ValeuruserSpaceOnUse|objectBoundingBox ; Valeur par défaut: userSpaceOnUse; Animation: oui
-
- -

Attributs globaux

- -
-
Attributs de base
-
Notamment: {{SVGAttr('id')}}
-
Attributs de style
-
{{SVGAttr('class')}}, {{SVGAttr('style')}}
-
Attributs de traitement conditionnel
-
Notamment: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
-
Attributs de présentation
-
Notamment: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
-
- -

Notes d'usage

- -

{{svginfo}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("CSS Masks", "#ClipPathElement", "<clipPath>")}}{{Spec2("CSS Masks")}} 
{{SpecName("SVG1.1", "masking.html#EstablishingANewClippingPath", "<clipPath>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- - diff --git a/files/fr/web/svg/element/clippath/index.md b/files/fr/web/svg/element/clippath/index.md new file mode 100644 index 0000000000..8ff3ec5a54 --- /dev/null +++ b/files/fr/web/svg/element/clippath/index.md @@ -0,0 +1,110 @@ +--- +title: +slug: Web/SVG/Element/clipPath +tags: + - Element + - SVG +translation_of: Web/SVG/Element/clipPath +--- +
{{SVGRef}}
+ +

L'élément SVG <clipPath> définit un détourage. Ce détourage peut par la suite être appliqué sur une forme en utilisant la propriété {{SVGAttr("clip-path")}}.

+ +

Le détourage limite la zone dans laquelle l'élément sur lequel il est appliqué sera dessiné. Autrement dit, les parties de l'élément en dehors de la forme créée par le détourage ne seront pas affichées.

+ +

Exemple

+ + + +
<svg viewBox="0 0 100 100">
+  <clipPath id="myClip">
+    <!-- La forme créée par le détourage est un simple cercle. -->
+    <circle cx="40" cy="35" r="35" />
+  </clipPath>
+
+  <!-- Le coeur sans détourage, pour référence -->
+  <path id="heart" d="M10,30 A20,20,0,0,1,50,30 A20,20,0,0,1,90,30 Q90,60,50,90 Q10,60,10,30 Z" />
+
+  <!--
+    Le coeur avec détourage.
+    Seule la partie à l'intérieur du cercle est visible.
+  -->
+  <use clip-path="url(#myClip)" xlink:href="#heart" fill="red" />
+</svg>
+ +
/* Animation CSS pour les navigateurs *
+ * qui implémentent la propriété de géométrie r. */
+
+@keyframes openYourHeart {from {r: 0} to {r: 60px}}
+
+#myClip circle {
+  animation: openYourHeart 15s infinite;
+}
+ +

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

+ +

Sur le plan conceptuel, un détourage est un peu comme une zone d'affichage personnalisée pour l'élément sur lequel il est appliqué. Cela va limiter la zone dans laquelle l'élément est affiché, sans affecter sa géométrie (position, taille, etc).

+ +

La zone de sélection d'un élément détouré (c'est à dire un élément qui référence un <clipPath> via la propriété {{SVGAttr("clip-path")}}, ou un de ses enfant) reste la même, comme s'il n'était pas tronqué.

+ +

Par défaut, les événements de pointeur ne sont pas déclenchés sur les régions détourées (non visibles) d'une forme. Par exemple, un cercle avec un rayon de 10 qui est détouré à un cercle de rayon 5, ne recevra pas d'événement "click" en dehors de ce rayon de 5. Ce comportement peut être modifié avec la propriété {{cssxref("pointer-events")}}.

+ +

Attributs

+ +
+
{{SVGAttr("clipPathUnits")}}
+
Cet attribut définit le système de coordonnées pour le contenu de l'élément <clipPath>.
+ ValeuruserSpaceOnUse|objectBoundingBox ; Valeur par défaut: userSpaceOnUse; Animation: oui
+
+ +

Attributs globaux

+ +
+
Attributs de base
+
Notamment: {{SVGAttr('id')}}
+
Attributs de style
+
{{SVGAttr('class')}}, {{SVGAttr('style')}}
+
Attributs de traitement conditionnel
+
Notamment: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
+
Attributs de présentation
+
Notamment: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
+
+ +

Notes d'usage

+ +

{{svginfo}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("CSS Masks", "#ClipPathElement", "<clipPath>")}}{{Spec2("CSS Masks")}} 
{{SpecName("SVG1.1", "masking.html#EstablishingANewClippingPath", "<clipPath>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • Élément de masquage: {{SVGElement("mask")}}
  • +
  • Quelques propriétés CSS: {{cssxref("clip-path")}}, {{cssxref("pointer-events")}}
  • +
diff --git a/files/fr/web/svg/element/defs/index.html b/files/fr/web/svg/element/defs/index.html deleted file mode 100644 index 6072fe6564..0000000000 --- a/files/fr/web/svg/element/defs/index.html +++ /dev/null @@ -1,83 +0,0 @@ ---- -title: -slug: Web/SVG/Element/defs -translation_of: Web/SVG/Element/defs ---- -
{{SVGRef}}
- -

SVG permet de définir des objets graphiques (génériques) pour une utilisation ultérieure. Autant qu'il est possible, cet usage est recommandé grâce aux propriétés offertes par l'élément defs.
- Ainsi définir ces éléments au sein de l'élément defs promeut une meilleure compréhension du contenu SVG par l'homme et donc son accessibilité.
-
- Les éléments définis grâce à defs ne sont jamais directement générés (au sens du rendu graphique : ils ne sont pas affichés). Vous devez utiliser l'élément {{SVGElement("use")}} pour leur-s utilisation-s lorsque vous le souhaitez au sein du viewport.

- -

Contexte d'usage

- -

{{svginfo}}

- -

Exemple

- -
<svg width="80px" height="30px" viewBox="0 0 80 30"
-     xmlns="http://www.w3.org/2000/svg">
-
-  <defs>
-    <linearGradient id="Gradient01">
-      <stop offset="20%" stop-color="#39F" />
-      <stop offset="90%" stop-color="#F3F" />
-    </linearGradient>
-  </defs>
-
-  <rect x="10" y="10" width="60" height="10"
-        fill="url(#Gradient01)"  />
-</svg>
-
- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -

Il ne dispoe pas d'attributs spécifiques.

- -

Interface avec DOM

- -

Cet élément est implémenté par l'interface SVGDefsElement.

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatusCommentaire
{{SpecName('SVG2', 'struct.html#Head', '<defs>')}}{{Spec2('SVG2')}} 
{{SpecName('SVG1.1', 'struct.html#Head', '<defs>')}}{{Spec2('SVG1.1')}}Initial definition
- -

Compatibilité des navigateurs

- -

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

diff --git a/files/fr/web/svg/element/defs/index.md b/files/fr/web/svg/element/defs/index.md new file mode 100644 index 0000000000..6072fe6564 --- /dev/null +++ b/files/fr/web/svg/element/defs/index.md @@ -0,0 +1,83 @@ +--- +title: +slug: Web/SVG/Element/defs +translation_of: Web/SVG/Element/defs +--- +
{{SVGRef}}
+ +

SVG permet de définir des objets graphiques (génériques) pour une utilisation ultérieure. Autant qu'il est possible, cet usage est recommandé grâce aux propriétés offertes par l'élément defs.
+ Ainsi définir ces éléments au sein de l'élément defs promeut une meilleure compréhension du contenu SVG par l'homme et donc son accessibilité.
+
+ Les éléments définis grâce à defs ne sont jamais directement générés (au sens du rendu graphique : ils ne sont pas affichés). Vous devez utiliser l'élément {{SVGElement("use")}} pour leur-s utilisation-s lorsque vous le souhaitez au sein du viewport.

+ +

Contexte d'usage

+ +

{{svginfo}}

+ +

Exemple

+ +
<svg width="80px" height="30px" viewBox="0 0 80 30"
+     xmlns="http://www.w3.org/2000/svg">
+
+  <defs>
+    <linearGradient id="Gradient01">
+      <stop offset="20%" stop-color="#39F" />
+      <stop offset="90%" stop-color="#F3F" />
+    </linearGradient>
+  </defs>
+
+  <rect x="10" y="10" width="60" height="10"
+        fill="url(#Gradient01)"  />
+</svg>
+
+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +

Il ne dispoe pas d'attributs spécifiques.

+ +

Interface avec DOM

+ +

Cet élément est implémenté par l'interface SVGDefsElement.

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatusCommentaire
{{SpecName('SVG2', 'struct.html#Head', '<defs>')}}{{Spec2('SVG2')}} 
{{SpecName('SVG1.1', 'struct.html#Head', '<defs>')}}{{Spec2('SVG1.1')}}Initial definition
+ +

Compatibilité des navigateurs

+ +

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

diff --git a/files/fr/web/svg/element/desc/index.html b/files/fr/web/svg/element/desc/index.html deleted file mode 100644 index 8ef116c3d2..0000000000 --- a/files/fr/web/svg/element/desc/index.html +++ /dev/null @@ -1,46 +0,0 @@ ---- -title: desc -slug: Web/SVG/Element/desc -tags: - - Element - - SVG - - SVG Description -translation_of: Web/SVG/Element/desc ---- -
{{SVGRef}}
- -

Tout élément graphique ou conteneur dans un dessin SVG peut définir une description en utilisant l'élément <desc>, cette description ne peut contenir que du texte.

- -

Quand l'élément contenant une description apparaît à l'utilisateur sous forme d'image, l'élément <desc> n'est pas affiché. Néanmoins, quelques moteurs de rendu peuvent, par exemple, l'afficher sous forme d'infobulle. Des représentations alternatives sont possibles, visuelles ou auditives, en remplacement des éléments graphiques. De manière générale, cet élément améliore l'accessibilité des documents SVG.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -

(Aucun)

- -

Interface DOM

- -

Cet élément implémente l'interface SVGDescElement.

- -

Compatibilitée des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{ SVGElement("title") }}
  • -
diff --git a/files/fr/web/svg/element/desc/index.md b/files/fr/web/svg/element/desc/index.md new file mode 100644 index 0000000000..8ef116c3d2 --- /dev/null +++ b/files/fr/web/svg/element/desc/index.md @@ -0,0 +1,46 @@ +--- +title: desc +slug: Web/SVG/Element/desc +tags: + - Element + - SVG + - SVG Description +translation_of: Web/SVG/Element/desc +--- +
{{SVGRef}}
+ +

Tout élément graphique ou conteneur dans un dessin SVG peut définir une description en utilisant l'élément <desc>, cette description ne peut contenir que du texte.

+ +

Quand l'élément contenant une description apparaît à l'utilisateur sous forme d'image, l'élément <desc> n'est pas affiché. Néanmoins, quelques moteurs de rendu peuvent, par exemple, l'afficher sous forme d'infobulle. Des représentations alternatives sont possibles, visuelles ou auditives, en remplacement des éléments graphiques. De manière générale, cet élément améliore l'accessibilité des documents SVG.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +

(Aucun)

+ +

Interface DOM

+ +

Cet élément implémente l'interface SVGDescElement.

+ +

Compatibilitée des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{ SVGElement("title") }}
  • +
diff --git a/files/fr/web/svg/element/ellipse/index.html b/files/fr/web/svg/element/ellipse/index.html deleted file mode 100644 index 450766fb25..0000000000 --- a/files/fr/web/svg/element/ellipse/index.html +++ /dev/null @@ -1,131 +0,0 @@ ---- -title: ellipse -slug: Web/SVG/Element/ellipse -tags: - - SVG - - SVG Element - - SVG Reference -translation_of: Web/SVG/Element/ellipse ---- -
{{SVGRef}}
- -

L'élément ellipse est une forme basique SVG,utilisé pour créer des ellipses basées sur un centre, et ses deux rayons x et y.

- -
-

Note: Il est impossible de spécifier l'orientation exacte d'une ellipse (par exemple, si vous souhaitez dessiner une ellipse à un angle de 45°), mais l'ellipse peut avoir une rotation avec l'attribut {{ SVGAttr("transform") }}.

-
- -
<svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg">
-  <ellipse cx="100" cy="50" rx="100" ry="50" />
-</svg>
- -

Attributs

- -

Attributs spécifiques

- - - -
-
{{ SVGAttr("cx") }}
-
La position x de l'ellipse.
- Type de valeur : <longueur>|<pourcentage>; Valeur par défaut : 0; Animable : oui.
-
{{ SVGAttr("cy") }}
-
La position y de l'ellipse.
- Type de valeur : <longueur>|<pourcentage>; Valeur par défaut : 0; Animable : oui.
-
{{ SVGAttr("rx") }}
-
Le rayon de l'ellipse sur l'axe x.
- Type de valeur : auto|<longueur>|<pourcentage>; Valeur par défaut : auto; Animable : oui.
-
{{ SVGAttr("ry") }}
-
Le rayon de l'ellipse sur l'axe y.
- Type de valeur : auto|<longueur>|<pourcentage>; Valeur par défaut : auto; Animable : oui.
-
{{ SVGAttr("pathLength") }}
-
Cet attribut permet de spécifier la longueur totale du tracé, en unités de l'utilisateur.
- Type de valeur : <number>; Valeur par défaut : auto; Animable : oui.
-
- -
-

Note: À partir de SVG2, cx, cy, rx, et ry sont des Propriétés Géomatriques, ce qui signifie que ces attributs peuvent aussi être utilisés comme propriétés CSS pour cet élément.

-
- -

Attributs Globaux

- -
-
Attributs centraux
-
Plus notamment : {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
-
Attributs de style
-
{{SVGAttr('class')}}, {{SVGAttr('style')}}
-
Attributs de traitement conditionnel
-
Plus notamment : {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
-
Attributs d'événements
-
Attributs d'événément globaux, Attributs d'événément graphiques
-
Attributs de présentation
-
Plus notamment : {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
-
Attributs ARIA
-
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role
-
- -

Usage

- -

{{svginfo}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('SVG2', 'shapes.html#EllipseElement', '<ellipse>')}}{{Spec2('SVG2')}}Ajout de la valeur auto pour rx et ry
{{SpecName('SVG1.1', 'shapes.html#EllipseElement', '<ellipse>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Interface DOM

- -

Cet élément implémente l'interface SVGEllipseElement.

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('SVG2', 'shapes.html#EllipseElement', '<ellipse>')}}{{Spec2('SVG2')}}Ajout de la valeur auto pour rx et ry.
{{SpecName('SVG1.1', 'shapes.html#EllipseElement', '<ellipse>')}}{{Spec2('SVG1.1')}}Définition initiale.
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • Autres formes de base SVG : {{SVGElement('circle')}}, {{SVGElement('line')}}, {{SVGElement('polygon')}}, {{SVGElement('polyline')}}, {{SVGElement('rect')}}
  • -
diff --git a/files/fr/web/svg/element/ellipse/index.md b/files/fr/web/svg/element/ellipse/index.md new file mode 100644 index 0000000000..450766fb25 --- /dev/null +++ b/files/fr/web/svg/element/ellipse/index.md @@ -0,0 +1,131 @@ +--- +title: ellipse +slug: Web/SVG/Element/ellipse +tags: + - SVG + - SVG Element + - SVG Reference +translation_of: Web/SVG/Element/ellipse +--- +
{{SVGRef}}
+ +

L'élément ellipse est une forme basique SVG,utilisé pour créer des ellipses basées sur un centre, et ses deux rayons x et y.

+ +
+

Note: Il est impossible de spécifier l'orientation exacte d'une ellipse (par exemple, si vous souhaitez dessiner une ellipse à un angle de 45°), mais l'ellipse peut avoir une rotation avec l'attribut {{ SVGAttr("transform") }}.

+
+ +
<svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg">
+  <ellipse cx="100" cy="50" rx="100" ry="50" />
+</svg>
+ +

Attributs

+ +

Attributs spécifiques

+ + + +
+
{{ SVGAttr("cx") }}
+
La position x de l'ellipse.
+ Type de valeur : <longueur>|<pourcentage>; Valeur par défaut : 0; Animable : oui.
+
{{ SVGAttr("cy") }}
+
La position y de l'ellipse.
+ Type de valeur : <longueur>|<pourcentage>; Valeur par défaut : 0; Animable : oui.
+
{{ SVGAttr("rx") }}
+
Le rayon de l'ellipse sur l'axe x.
+ Type de valeur : auto|<longueur>|<pourcentage>; Valeur par défaut : auto; Animable : oui.
+
{{ SVGAttr("ry") }}
+
Le rayon de l'ellipse sur l'axe y.
+ Type de valeur : auto|<longueur>|<pourcentage>; Valeur par défaut : auto; Animable : oui.
+
{{ SVGAttr("pathLength") }}
+
Cet attribut permet de spécifier la longueur totale du tracé, en unités de l'utilisateur.
+ Type de valeur : <number>; Valeur par défaut : auto; Animable : oui.
+
+ +
+

Note: À partir de SVG2, cx, cy, rx, et ry sont des Propriétés Géomatriques, ce qui signifie que ces attributs peuvent aussi être utilisés comme propriétés CSS pour cet élément.

+
+ +

Attributs Globaux

+ +
+
Attributs centraux
+
Plus notamment : {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
+
Attributs de style
+
{{SVGAttr('class')}}, {{SVGAttr('style')}}
+
Attributs de traitement conditionnel
+
Plus notamment : {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
+
Attributs d'événements
+
Attributs d'événément globaux, Attributs d'événément graphiques
+
Attributs de présentation
+
Plus notamment : {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
+
Attributs ARIA
+
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role
+
+ +

Usage

+ +

{{svginfo}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('SVG2', 'shapes.html#EllipseElement', '<ellipse>')}}{{Spec2('SVG2')}}Ajout de la valeur auto pour rx et ry
{{SpecName('SVG1.1', 'shapes.html#EllipseElement', '<ellipse>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Interface DOM

+ +

Cet élément implémente l'interface SVGEllipseElement.

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('SVG2', 'shapes.html#EllipseElement', '<ellipse>')}}{{Spec2('SVG2')}}Ajout de la valeur auto pour rx et ry.
{{SpecName('SVG1.1', 'shapes.html#EllipseElement', '<ellipse>')}}{{Spec2('SVG1.1')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • Autres formes de base SVG : {{SVGElement('circle')}}, {{SVGElement('line')}}, {{SVGElement('polygon')}}, {{SVGElement('polyline')}}, {{SVGElement('rect')}}
  • +
diff --git a/files/fr/web/svg/element/feblend/index.html b/files/fr/web/svg/element/feblend/index.html deleted file mode 100644 index 4c179a67b5..0000000000 --- a/files/fr/web/svg/element/feblend/index.html +++ /dev/null @@ -1,115 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feBlend -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feBlend ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feBlend> permet de combiner deux objets en utilisant un mode de fusion définit, un peu de la même manière que les logiciels de retouche d'image permettent de fusionner deux calques. Le mode à utiliser est définit par l'attribut {{SVGAttr("mode")}}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("in")}}
  • -
  • {{SVGAttr("in2")}}
  • -
  • {{SVGAttr("mode")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

SVG

- -
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"
-    xmlns:xlink="http://www.w3.org/1999/xlink">
-  <defs>
-    <filter id="spotlight">
-      <feFlood result="floodFill" x="0" y="0" width="100%" height="100%"
-          flood-color="green" flood-opacity="1"/>
-      <feBlend in="SourceGraphic" in2="floodFill" mode="multiply"/>
-    </filter>
-  </defs>
-
-  <image xlink:href="/files/6457/mdn_logo_only_color.png"
-      x="10%" y="10%" width="80%" height="80%"
-      style="filter:url(#spotlight);"/>
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 200, 200)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feBlendElement", "<feBlend>")}}{{Spec2("Filters 1.0")}}Modes de fusion externalisés vers {{SpecName("Compositing", "#ltblendmodegt")}}
{{SpecName("SVG1.1", "filters.html#feBlendElement", "<feBlend>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/feblend/index.md b/files/fr/web/svg/element/feblend/index.md new file mode 100644 index 0000000000..4c179a67b5 --- /dev/null +++ b/files/fr/web/svg/element/feblend/index.md @@ -0,0 +1,115 @@ +--- +title: +slug: Web/SVG/Element/feBlend +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feBlend +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feBlend> permet de combiner deux objets en utilisant un mode de fusion définit, un peu de la même manière que les logiciels de retouche d'image permettent de fusionner deux calques. Le mode à utiliser est définit par l'attribut {{SVGAttr("mode")}}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("in")}}
  • +
  • {{SVGAttr("in2")}}
  • +
  • {{SVGAttr("mode")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"
+    xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+    <filter id="spotlight">
+      <feFlood result="floodFill" x="0" y="0" width="100%" height="100%"
+          flood-color="green" flood-opacity="1"/>
+      <feBlend in="SourceGraphic" in2="floodFill" mode="multiply"/>
+    </filter>
+  </defs>
+
+  <image xlink:href="/files/6457/mdn_logo_only_color.png"
+      x="10%" y="10%" width="80%" height="80%"
+      style="filter:url(#spotlight);"/>
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 200, 200)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feBlendElement", "<feBlend>")}}{{Spec2("Filters 1.0")}}Modes de fusion externalisés vers {{SpecName("Compositing", "#ltblendmodegt")}}
{{SpecName("SVG1.1", "filters.html#feBlendElement", "<feBlend>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fecolormatrix/index.html b/files/fr/web/svg/element/fecolormatrix/index.html deleted file mode 100644 index 6d5f56a90a..0000000000 --- a/files/fr/web/svg/element/fecolormatrix/index.html +++ /dev/null @@ -1,161 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feColorMatrix -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feColorMatrix ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feColorMatrix> change les couleurs d'un élément en fonction d'une matrice de transformation. Chaque pixel (représenté par un vecteur [R,G,B,A]) est multiplié par matrice pour créer une nouvelle couleur:

- -
| R' |     | a00 a01 a02 a03 a04 |   | R |
-| G' |     | a10 a11 a12 a13 a14 |   | G |
-| B' |  =  | a20 a21 a22 a23 a24 | * | B |
-| A' |     | a30 a31 a32 a33 a34 |   | A |
-| 1  |     |  0   0   0   0   1  |   | 1 |
- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("in")}}
  • -
  • {{SVGAttr("type")}}
  • -
  • {{SVGAttr("values")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

SVG

- -
<svg width="100%" height="100%" viewBox="0 0 150 360"
-    preserveAspectRatio="xMidYMid meet"
-    xmlns="http://www.w3.org/2000/svg"
-    xmlns:xlink="http://www.w3.org/1999/xlink">
-
-  <!-- ref -->
-  <defs>
-    <g id="circles">
-      <circle cx="30" cy="30" r="20" fill="blue" fill-opacity="0.5" />
-      <circle cx="20" cy="50" r="20" fill="green" fill-opacity="0.5" />
-      <circle cx="40" cy="50" r="20" fill="red" fill-opacity="0.5" />
-    </g>
-  </defs>
-  <use href="#circles" />
-  <text x="70" y="50">Reference</text>
-
-  <!-- matrix -->
-  <filter id="colorMeMatrix">
-    <feColorMatrix in="SourceGraphic"
-        type="matrix"
-        values="0 0 0 0 0
-                1 1 1 1 0
-                0 0 0 0 0
-                0 0 0 1 0" />
-  </filter>
-  <use href="#circles" transform="translate(0 70)" filter="url(#colorMeMatrix)" />
-  <text x="70" y="120">matrix</text>
-
-  <!-- saturate -->
-  <filter id="colorMeSaturate">
-    <feColorMatrix in="SourceGraphic"
-        type="saturate"
-        values="0.2" />
-  </filter>
-  <use href="#circles" transform="translate(0 140)" filter="url(#colorMeSaturate)" />
-  <text x="70" y="190">saturate</text>
-
-  <!-- hueRotate -->
-  <filter id="colorMeHueRotate">
-    <feColorMatrix in="SourceGraphic"
-        type="hueRotate"
-        values="180" />
-  </filter>
-  <use href="#circles" transform="translate(0 210)" filter="url(#colorMeHueRotate)" />
-  <text x="70" y="260">hueRotate</text>
-
-  <!-- luminanceToAlpha -->
-  <filter id="colorMeLTA">
-    <feColorMatrix in="SourceGraphic"
-        type="luminanceToAlpha" />
-  </filter>
-  <use href="#circles" transform="translate(0 280)" filter="url(#colorMeLTA)" />
-  <text x="70" y="320">luminanceToAlpha</text>
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple", "100%", 700, "/files/4371/test.png")}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feColorMatrixElement', '<feColorMatrix>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feColorMatrixElement', '<feColorMatrix>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fecolormatrix/index.md b/files/fr/web/svg/element/fecolormatrix/index.md new file mode 100644 index 0000000000..6d5f56a90a --- /dev/null +++ b/files/fr/web/svg/element/fecolormatrix/index.md @@ -0,0 +1,161 @@ +--- +title: +slug: Web/SVG/Element/feColorMatrix +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feColorMatrix +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feColorMatrix> change les couleurs d'un élément en fonction d'une matrice de transformation. Chaque pixel (représenté par un vecteur [R,G,B,A]) est multiplié par matrice pour créer une nouvelle couleur:

+ +
| R' |     | a00 a01 a02 a03 a04 |   | R |
+| G' |     | a10 a11 a12 a13 a14 |   | G |
+| B' |  =  | a20 a21 a22 a23 a24 | * | B |
+| A' |     | a30 a31 a32 a33 a34 |   | A |
+| 1  |     |  0   0   0   0   1  |   | 1 |
+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("in")}}
  • +
  • {{SVGAttr("type")}}
  • +
  • {{SVGAttr("values")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg width="100%" height="100%" viewBox="0 0 150 360"
+    preserveAspectRatio="xMidYMid meet"
+    xmlns="http://www.w3.org/2000/svg"
+    xmlns:xlink="http://www.w3.org/1999/xlink">
+
+  <!-- ref -->
+  <defs>
+    <g id="circles">
+      <circle cx="30" cy="30" r="20" fill="blue" fill-opacity="0.5" />
+      <circle cx="20" cy="50" r="20" fill="green" fill-opacity="0.5" />
+      <circle cx="40" cy="50" r="20" fill="red" fill-opacity="0.5" />
+    </g>
+  </defs>
+  <use href="#circles" />
+  <text x="70" y="50">Reference</text>
+
+  <!-- matrix -->
+  <filter id="colorMeMatrix">
+    <feColorMatrix in="SourceGraphic"
+        type="matrix"
+        values="0 0 0 0 0
+                1 1 1 1 0
+                0 0 0 0 0
+                0 0 0 1 0" />
+  </filter>
+  <use href="#circles" transform="translate(0 70)" filter="url(#colorMeMatrix)" />
+  <text x="70" y="120">matrix</text>
+
+  <!-- saturate -->
+  <filter id="colorMeSaturate">
+    <feColorMatrix in="SourceGraphic"
+        type="saturate"
+        values="0.2" />
+  </filter>
+  <use href="#circles" transform="translate(0 140)" filter="url(#colorMeSaturate)" />
+  <text x="70" y="190">saturate</text>
+
+  <!-- hueRotate -->
+  <filter id="colorMeHueRotate">
+    <feColorMatrix in="SourceGraphic"
+        type="hueRotate"
+        values="180" />
+  </filter>
+  <use href="#circles" transform="translate(0 210)" filter="url(#colorMeHueRotate)" />
+  <text x="70" y="260">hueRotate</text>
+
+  <!-- luminanceToAlpha -->
+  <filter id="colorMeLTA">
+    <feColorMatrix in="SourceGraphic"
+        type="luminanceToAlpha" />
+  </filter>
+  <use href="#circles" transform="translate(0 280)" filter="url(#colorMeLTA)" />
+  <text x="70" y="320">luminanceToAlpha</text>
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", "100%", 700, "/files/4371/test.png")}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feColorMatrixElement', '<feColorMatrix>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feColorMatrixElement', '<feColorMatrix>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fecomponenttransfer/index.html b/files/fr/web/svg/element/fecomponenttransfer/index.html deleted file mode 100644 index 1c4e672cde..0000000000 --- a/files/fr/web/svg/element/fecomponenttransfer/index.html +++ /dev/null @@ -1,163 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feComponentTransfer -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feComponentTransfer ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feComponentTransfer> permet d'effectuer un remappage des composantes de couleur (rouge, bleu, vert et alpha) de chaque pixel. Cela permet notamment de régler la luminosité, le constraste, la balance des couleurs ou encore le seuillage.

- -

Les calculs sont effectués sur les valeurs de couleur non prémultipliées. Chaque canal de couleur est modifié en utilisant le résultat des éléments {{SVGElement("feFuncR")}}, {{SVGElement("feFuncB")}}, {{SVGElement("feFuncG")}}, et {{SVGElement("feFuncA")}} placés à l'intérieur de la balise.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("in")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

SVG

- -
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 300">
-  <defs>
-    <linearGradient id="rainbow" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="100%" y2="0">
-      <stop offset="0" stop-color="#ff0000"></stop>
-      <stop offset="0.2" stop-color="#ffff00"></stop>
-      <stop offset="0.4" stop-color="#00ff00"></stop>
-      <stop offset="0.6" stop-color="#00ffff"></stop>
-      <stop offset="0.8" stop-color="#0000ff"></stop>
-      <stop offset="1" stop-color="#800080"></stop>
-    </linearGradient>
-    <filter id="identity" x="0" y="0" width="100%" height="100%">
-      <feComponentTransfer>
-        <feFuncR type="identity"></feFuncR>
-        <feFuncG type="identity"></feFuncG>
-        <feFuncB type="identity"></feFuncB>
-        <feFuncA type="identity"></feFuncA>
-      </feComponentTransfer>
-    </filter>
-    <filter id="table" x="0" y="0" width="100%" height="100%">
-      <feComponentTransfer>
-        <feFuncR type="table" tableValues="0 0 1 1"></feFuncR>
-        <feFuncG type="table" tableValues="1 1 0 0"></feFuncG>
-        <feFuncB type="table" tableValues="0 1 1 0"></feFuncB>
-      </feComponentTransfer>
-    </filter>
-    <filter id="linear" x="0" y="0" width="100%" height="100%">
-      <feComponentTransfer>
-        <feFuncR type="linear" slope="0.5" intercept="0"></feFuncR>
-        <feFuncG type="linear" slope="0.5" intercept="0.25"></feFuncG>
-        <feFuncB type="linear" slope="0.5" intercept="0.5"></feFuncB>
-      </feComponentTransfer>
-    </filter>
-    <filter id="gamma" x="0" y="0" width="100%" height="100%">
-      <feComponentTransfer>
-        <feFuncR type="gamma" amplitude="4" exponent="7" offset="0"></feFuncR>
-        <feFuncG type="gamma" amplitude="4" exponent="4" offset="0"></feFuncG>
-        <feFuncB type="gamma" amplitude="4" exponent="1" offset="0"></feFuncB>
-      </feComponentTransfer>
-    </filter>
-  </defs>
-
-  <g font-weight="bold">
-    <text x="0" y="5%">Default</text>
-    <rect x="0" y="8%" width="100%" height="20"></rect>
-    <text x="0" y="26%">Identity</text>
-    <rect x="0" y="29%" width="100%" height="20" style="filter:url(#identity)"></rect>
-    <text x="0" y="47%">Table lookup</text>
-    <rect x="0" y="50%" width="100%" height="20" style="filter:url(#table)"></rect>
-    <text x="0" y="68%">Linear function</text>
-    <rect x="0" y="71%" width="100%" height="20" style="filter:url(#linear)"></rect>
-    <text x="0" y="89%">Gamma function</text>
-    <rect x="0" y="92%" width="100%" height="20" style="filter:url(#gamma)"></rect>
-  </g>
-</svg>
- -

CSS

- -
rect {
-  fill: url(#rainbow);
-}
- -

Résultat

- -

{{EmbedLiveSample("Exemple", "100%", 340)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feComponentTransferElement', '<feComponentTransfer>')}}{{Spec2('Filters 1.0')}}Spécifie que les fonctions de transfert non définies sont traitées comme si elles avaient été définies avec pour  {{SVGAttr("type")}} identity.
{{SpecName('SVG1.1', 'filters.html#feComponentTransferElement', '<feComponentTransfer>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feFuncA")}}
  • -
  • {{SVGElement("feFuncB")}}
  • -
  • {{SVGElement("feFuncG")}}
  • -
  • {{SVGElement("feFuncR")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fecomponenttransfer/index.md b/files/fr/web/svg/element/fecomponenttransfer/index.md new file mode 100644 index 0000000000..1c4e672cde --- /dev/null +++ b/files/fr/web/svg/element/fecomponenttransfer/index.md @@ -0,0 +1,163 @@ +--- +title: +slug: Web/SVG/Element/feComponentTransfer +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feComponentTransfer +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feComponentTransfer> permet d'effectuer un remappage des composantes de couleur (rouge, bleu, vert et alpha) de chaque pixel. Cela permet notamment de régler la luminosité, le constraste, la balance des couleurs ou encore le seuillage.

+ +

Les calculs sont effectués sur les valeurs de couleur non prémultipliées. Chaque canal de couleur est modifié en utilisant le résultat des éléments {{SVGElement("feFuncR")}}, {{SVGElement("feFuncB")}}, {{SVGElement("feFuncG")}}, et {{SVGElement("feFuncA")}} placés à l'intérieur de la balise.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("in")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 300">
+  <defs>
+    <linearGradient id="rainbow" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="100%" y2="0">
+      <stop offset="0" stop-color="#ff0000"></stop>
+      <stop offset="0.2" stop-color="#ffff00"></stop>
+      <stop offset="0.4" stop-color="#00ff00"></stop>
+      <stop offset="0.6" stop-color="#00ffff"></stop>
+      <stop offset="0.8" stop-color="#0000ff"></stop>
+      <stop offset="1" stop-color="#800080"></stop>
+    </linearGradient>
+    <filter id="identity" x="0" y="0" width="100%" height="100%">
+      <feComponentTransfer>
+        <feFuncR type="identity"></feFuncR>
+        <feFuncG type="identity"></feFuncG>
+        <feFuncB type="identity"></feFuncB>
+        <feFuncA type="identity"></feFuncA>
+      </feComponentTransfer>
+    </filter>
+    <filter id="table" x="0" y="0" width="100%" height="100%">
+      <feComponentTransfer>
+        <feFuncR type="table" tableValues="0 0 1 1"></feFuncR>
+        <feFuncG type="table" tableValues="1 1 0 0"></feFuncG>
+        <feFuncB type="table" tableValues="0 1 1 0"></feFuncB>
+      </feComponentTransfer>
+    </filter>
+    <filter id="linear" x="0" y="0" width="100%" height="100%">
+      <feComponentTransfer>
+        <feFuncR type="linear" slope="0.5" intercept="0"></feFuncR>
+        <feFuncG type="linear" slope="0.5" intercept="0.25"></feFuncG>
+        <feFuncB type="linear" slope="0.5" intercept="0.5"></feFuncB>
+      </feComponentTransfer>
+    </filter>
+    <filter id="gamma" x="0" y="0" width="100%" height="100%">
+      <feComponentTransfer>
+        <feFuncR type="gamma" amplitude="4" exponent="7" offset="0"></feFuncR>
+        <feFuncG type="gamma" amplitude="4" exponent="4" offset="0"></feFuncG>
+        <feFuncB type="gamma" amplitude="4" exponent="1" offset="0"></feFuncB>
+      </feComponentTransfer>
+    </filter>
+  </defs>
+
+  <g font-weight="bold">
+    <text x="0" y="5%">Default</text>
+    <rect x="0" y="8%" width="100%" height="20"></rect>
+    <text x="0" y="26%">Identity</text>
+    <rect x="0" y="29%" width="100%" height="20" style="filter:url(#identity)"></rect>
+    <text x="0" y="47%">Table lookup</text>
+    <rect x="0" y="50%" width="100%" height="20" style="filter:url(#table)"></rect>
+    <text x="0" y="68%">Linear function</text>
+    <rect x="0" y="71%" width="100%" height="20" style="filter:url(#linear)"></rect>
+    <text x="0" y="89%">Gamma function</text>
+    <rect x="0" y="92%" width="100%" height="20" style="filter:url(#gamma)"></rect>
+  </g>
+</svg>
+ +

CSS

+ +
rect {
+  fill: url(#rainbow);
+}
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", "100%", 340)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feComponentTransferElement', '<feComponentTransfer>')}}{{Spec2('Filters 1.0')}}Spécifie que les fonctions de transfert non définies sont traitées comme si elles avaient été définies avec pour  {{SVGAttr("type")}} identity.
{{SpecName('SVG1.1', 'filters.html#feComponentTransferElement', '<feComponentTransfer>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feFuncA")}}
  • +
  • {{SVGElement("feFuncB")}}
  • +
  • {{SVGElement("feFuncG")}}
  • +
  • {{SVGElement("feFuncR")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fecomposite/index.html b/files/fr/web/svg/element/fecomposite/index.html deleted file mode 100644 index 096b79e038..0000000000 --- a/files/fr/web/svg/element/fecomposite/index.html +++ /dev/null @@ -1,286 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feComposite -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feComposite ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feComposite> effectue la combinaison de deux images en entrée, pixel par pixel, en utilisant une des opérations de composition de Porter-Duff: over, in, atop, out, xor, et lighter. Il est également possible d'appliquer une opération de type arithmetic (avec un résultat borné entre [0..1]).

- -

L'opération arithmetic est utile pour combiner le résultat de {{SVGElement("feDiffuseLighting")}} et {{SVGElement("feSpecularLighting")}} avec des textures. Si l'opération arithmetic est choisie, chaque pixel est calculé à l'aide de la formule suivante:

- -
result = k1*i1*i2 + k2*i1 + k3*i2 + k4
-
- -

- -
    -
  • i1 et i2 indiquent les valeurs des pixels correspondant aux images en entrée, {{SVGAttr("in")}} et {{SVGAttr("in2")}} respectivement
  • -
  • k1, k2, k3 et k4 indiquent les valeurs des attributs du même nom
  • -
- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("in")}}
  • -
  • {{SVGAttr("in2")}}
  • -
  • {{SVGAttr("operator")}}
  • -
  • {{SVGAttr("k1")}}
  • -
  • {{SVGAttr("k2")}}
  • -
  • {{SVGAttr("k3")}}
  • -
  • {{SVGAttr("k4")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

SVG

- -
<svg width="330" height="195" viewBox="0 0 1100 650" version="1.1"
-     xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <title>Example feComposite - Examples of feComposite operations</title>
-  <desc>Four rows of six pairs of overlapping triangles depicting
-        the six different feComposite operators under different
-        opacity values and different clearing of the background.</desc>
-	<defs>
-    <desc>Define two sets of six filters for each of the six compositing operators.
-          The first set wipes out the background image by flooding with opaque white.
-          The second set does not wipe out the background, with the result
-          that the background sometimes shines through and is other cases
-          is blended into itself (i.e., "double-counting").</desc>
-    <filter id="overFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
-      <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
-      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="over" result="comp"/>
-      <feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
-    </filter>
-    <filter id="inFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
-      <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
-      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="in" result="comp"/>
-      <feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
-    </filter>
-    <filter id="outFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
-      <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
-      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="out" result="comp"/>
-      <feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
-    </filter>
-    <filter id="atopFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
-      <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
-      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="atop" result="comp"/>
-      <feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
-    </filter>
-    <filter id="xorFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
-      <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
-      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="xor" result="comp"/>
-      <feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
-    </filter>
-    <filter id="arithmeticFlood" filterUnits="objectBoundingBox"
-            x="-5%" y="-5%" width="110%" height="110%">
-      <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
-      <feComposite in="SourceGraphic" in2="BackgroundImage" result="comp"
-                   operator="arithmetic" k1=".5" k2=".5" k3=".5" k4=".5"/>
-      <feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
-    </filter>
-    <filter id="overNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
-      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="over" result="comp"/>
-    </filter>
-    <filter id="inNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
-      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="in" result="comp"/>
-    </filter>
-    <filter id="outNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
-      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="out" result="comp"/>
-    </filter>
-    <filter id="atopNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
-      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="atop" result="comp"/>
-    </filter>
-    <filter id="xorNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
-      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="xor" result="comp"/>
-    </filter>
-    <filter id="arithmeticNoFlood" filterUnits="objectBoundingBox"
-            x="-5%" y="-5%" width="110%" height="110%">
-      <feComposite in="SourceGraphic" in2="BackgroundImage" result="comp"
-                   operator="arithmetic" k1=".5" k2=".5" k3=".5" k4=".5"/>
-    </filter>
-    <path id="Blue100" d="M 0 0 L 100 0 L 100 100 z" fill="#00ffff" />
-    <path id="Red100" d="M 0 0 L 0 100 L 100 0 z" fill="#ff00ff" />
-    <path id="Blue50" d="M 0 125 L 100 125 L 100 225 z" fill="#00ffff" fill-opacity=".5" />
-    <path id="Red50" d="M 0 125 L 0 225 L 100 125 z" fill="#ff00ff" fill-opacity=".5" />
-    <g id="TwoBlueTriangles">
-      <use xlink:href="#Blue100"/>
-      <use xlink:href="#Blue50"/>
-    </g>
-    <g id="BlueTriangles">
-      <use transform="translate(275,25)" xlink:href="#TwoBlueTriangles"/>
-      <use transform="translate(400,25)" xlink:href="#TwoBlueTriangles"/>
-      <use transform="translate(525,25)" xlink:href="#TwoBlueTriangles"/>
-      <use transform="translate(650,25)" xlink:href="#TwoBlueTriangles"/>
-      <use transform="translate(775,25)" xlink:href="#TwoBlueTriangles"/>
-      <use transform="translate(900,25)" xlink:href="#TwoBlueTriangles"/>
-    </g>
-  </defs>
-
-  <rect fill="none" stroke="blue" x="1" y="1" width="1098" height="648"/>
-  <g font-family="Verdana" font-size="40" shape-rendering="crispEdges">
-    <desc>Render the examples using the filters that draw on top of
-          an opaque white surface, thus obliterating the background.</desc>
-    <g enable-background="new">
-      <text x="15" y="75">opacity 1.0</text>
-      <text x="15" y="115" font-size="27">(with feFlood)</text>
-      <text x="15" y="200">opacity 0.5</text>
-      <text x="15" y="240" font-size="27">(with feFlood)</text>
-      <use xlink:href="#BlueTriangles"/>
-      <g transform="translate(275,25)">
-        <use xlink:href="#Red100" filter="url(#overFlood)" />
-        <use xlink:href="#Red50" filter="url(#overFlood)" />
-        <text x="5" y="275">over</text>
-      </g>
-      <g transform="translate(400,25)">
-        <use xlink:href="#Red100" filter="url(#inFlood)" />
-        <use xlink:href="#Red50" filter="url(#inFlood)" />
-        <text x="35" y="275">in</text>
-      </g>
-      <g transform="translate(525,25)">
-        <use xlink:href="#Red100" filter="url(#outFlood)" />
-        <use xlink:href="#Red50" filter="url(#outFlood)" />
-        <text x="15" y="275">out</text>
-      </g>
-      <g transform="translate(650,25)">
-        <use xlink:href="#Red100" filter="url(#atopFlood)" />
-        <use xlink:href="#Red50" filter="url(#atopFlood)" />
-        <text x="10" y="275">atop</text>
-      </g>
-      <g transform="translate(775,25)">
-        <use xlink:href="#Red100" filter="url(#xorFlood)" />
-        <use xlink:href="#Red50" filter="url(#xorFlood)" />
-        <text x="15" y="275">xor</text>
-      </g>
-      <g transform="translate(900,25)">
-        <use xlink:href="#Red100" filter="url(#arithmeticFlood)" />
-        <use xlink:href="#Red50" filter="url(#arithmeticFlood)" />
-        <text x="-25" y="275">arithmetic</text>
-      </g>
-    </g>
-    <g transform="translate(0,325)" enable-background="new">
-    <desc>Render the examples using the filters that do not obliterate
-          the background, thus sometimes causing the background to continue
-          to appear in some cases, and in other cases the background
-          image blends into itself ("double-counting").</desc>
-      <text x="15" y="75">opacity 1.0</text>
-      <text x="15" y="115" font-size="27">(without feFlood)</text>
-      <text x="15" y="200">opacity 0.5</text>
-      <text x="15" y="240" font-size="27">(without feFlood)</text>
-      <use xlink:href="#BlueTriangles"/>
-      <g transform="translate(275,25)">
-        <use xlink:href="#Red100" filter="url(#overNoFlood)" />
-        <use xlink:href="#Red50" filter="url(#overNoFlood)" />
-        <text x="5" y="275">over</text>
-      </g>
-      <g transform="translate(400,25)">
-        <use xlink:href="#Red100" filter="url(#inNoFlood)" />
-        <use xlink:href="#Red50" filter="url(#inNoFlood)" />
-        <text x="35" y="275">in</text>
-      </g>
-      <g transform="translate(525,25)">
-        <use xlink:href="#Red100" filter="url(#outNoFlood)" />
-        <use xlink:href="#Red50" filter="url(#outNoFlood)" />
-        <text x="15" y="275">out</text>
-      </g>
-      <g transform="translate(650,25)">
-        <use xlink:href="#Red100" filter="url(#atopNoFlood)" />
-        <use xlink:href="#Red50" filter="url(#atopNoFlood)" />
-        <text x="10" y="275">atop</text>
-      </g>
-      <g transform="translate(775,25)">
-        <use xlink:href="#Red100" filter="url(#xorNoFlood)" />
-        <use xlink:href="#Red50" filter="url(#xorNoFlood)" />
-        <text x="15" y="275">xor</text>
-      </g>
-      <g transform="translate(900,25)">
-        <use xlink:href="#Red100" filter="url(#arithmeticNoFlood)" />
-        <use xlink:href="#Red50" filter="url(#arithmeticNoFlood)" />
-        <text x="-25" y="275">arithmetic</text>
-      </g>
-    </g>
-  </g>
-</svg>
-
- -

Résultat

- -

Cette image affine le résultat désiré.

- -

Example feComposite — Examples of feComposite operations

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feCompositeElement', '<feComposite>')}}{{Spec2('Filters 1.0')}}Ajoute la valeur lighter pour l'attribut operator.
{{SpecName('SVG1.1', 'filters.html#feCompositeElement', '<feComposite>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fecomposite/index.md b/files/fr/web/svg/element/fecomposite/index.md new file mode 100644 index 0000000000..096b79e038 --- /dev/null +++ b/files/fr/web/svg/element/fecomposite/index.md @@ -0,0 +1,286 @@ +--- +title: +slug: Web/SVG/Element/feComposite +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feComposite +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feComposite> effectue la combinaison de deux images en entrée, pixel par pixel, en utilisant une des opérations de composition de Porter-Duff: over, in, atop, out, xor, et lighter. Il est également possible d'appliquer une opération de type arithmetic (avec un résultat borné entre [0..1]).

+ +

L'opération arithmetic est utile pour combiner le résultat de {{SVGElement("feDiffuseLighting")}} et {{SVGElement("feSpecularLighting")}} avec des textures. Si l'opération arithmetic est choisie, chaque pixel est calculé à l'aide de la formule suivante:

+ +
result = k1*i1*i2 + k2*i1 + k3*i2 + k4
+
+ +

+ +
    +
  • i1 et i2 indiquent les valeurs des pixels correspondant aux images en entrée, {{SVGAttr("in")}} et {{SVGAttr("in2")}} respectivement
  • +
  • k1, k2, k3 et k4 indiquent les valeurs des attributs du même nom
  • +
+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("in")}}
  • +
  • {{SVGAttr("in2")}}
  • +
  • {{SVGAttr("operator")}}
  • +
  • {{SVGAttr("k1")}}
  • +
  • {{SVGAttr("k2")}}
  • +
  • {{SVGAttr("k3")}}
  • +
  • {{SVGAttr("k4")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg width="330" height="195" viewBox="0 0 1100 650" version="1.1"
+     xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+  <title>Example feComposite - Examples of feComposite operations</title>
+  <desc>Four rows of six pairs of overlapping triangles depicting
+        the six different feComposite operators under different
+        opacity values and different clearing of the background.</desc>
+	<defs>
+    <desc>Define two sets of six filters for each of the six compositing operators.
+          The first set wipes out the background image by flooding with opaque white.
+          The second set does not wipe out the background, with the result
+          that the background sometimes shines through and is other cases
+          is blended into itself (i.e., "double-counting").</desc>
+    <filter id="overFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
+      <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
+      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="over" result="comp"/>
+      <feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
+    </filter>
+    <filter id="inFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
+      <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
+      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="in" result="comp"/>
+      <feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
+    </filter>
+    <filter id="outFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
+      <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
+      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="out" result="comp"/>
+      <feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
+    </filter>
+    <filter id="atopFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
+      <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
+      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="atop" result="comp"/>
+      <feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
+    </filter>
+    <filter id="xorFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
+      <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
+      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="xor" result="comp"/>
+      <feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
+    </filter>
+    <filter id="arithmeticFlood" filterUnits="objectBoundingBox"
+            x="-5%" y="-5%" width="110%" height="110%">
+      <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
+      <feComposite in="SourceGraphic" in2="BackgroundImage" result="comp"
+                   operator="arithmetic" k1=".5" k2=".5" k3=".5" k4=".5"/>
+      <feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
+    </filter>
+    <filter id="overNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
+      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="over" result="comp"/>
+    </filter>
+    <filter id="inNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
+      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="in" result="comp"/>
+    </filter>
+    <filter id="outNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
+      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="out" result="comp"/>
+    </filter>
+    <filter id="atopNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
+      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="atop" result="comp"/>
+    </filter>
+    <filter id="xorNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%">
+      <feComposite in="SourceGraphic" in2="BackgroundImage" operator="xor" result="comp"/>
+    </filter>
+    <filter id="arithmeticNoFlood" filterUnits="objectBoundingBox"
+            x="-5%" y="-5%" width="110%" height="110%">
+      <feComposite in="SourceGraphic" in2="BackgroundImage" result="comp"
+                   operator="arithmetic" k1=".5" k2=".5" k3=".5" k4=".5"/>
+    </filter>
+    <path id="Blue100" d="M 0 0 L 100 0 L 100 100 z" fill="#00ffff" />
+    <path id="Red100" d="M 0 0 L 0 100 L 100 0 z" fill="#ff00ff" />
+    <path id="Blue50" d="M 0 125 L 100 125 L 100 225 z" fill="#00ffff" fill-opacity=".5" />
+    <path id="Red50" d="M 0 125 L 0 225 L 100 125 z" fill="#ff00ff" fill-opacity=".5" />
+    <g id="TwoBlueTriangles">
+      <use xlink:href="#Blue100"/>
+      <use xlink:href="#Blue50"/>
+    </g>
+    <g id="BlueTriangles">
+      <use transform="translate(275,25)" xlink:href="#TwoBlueTriangles"/>
+      <use transform="translate(400,25)" xlink:href="#TwoBlueTriangles"/>
+      <use transform="translate(525,25)" xlink:href="#TwoBlueTriangles"/>
+      <use transform="translate(650,25)" xlink:href="#TwoBlueTriangles"/>
+      <use transform="translate(775,25)" xlink:href="#TwoBlueTriangles"/>
+      <use transform="translate(900,25)" xlink:href="#TwoBlueTriangles"/>
+    </g>
+  </defs>
+
+  <rect fill="none" stroke="blue" x="1" y="1" width="1098" height="648"/>
+  <g font-family="Verdana" font-size="40" shape-rendering="crispEdges">
+    <desc>Render the examples using the filters that draw on top of
+          an opaque white surface, thus obliterating the background.</desc>
+    <g enable-background="new">
+      <text x="15" y="75">opacity 1.0</text>
+      <text x="15" y="115" font-size="27">(with feFlood)</text>
+      <text x="15" y="200">opacity 0.5</text>
+      <text x="15" y="240" font-size="27">(with feFlood)</text>
+      <use xlink:href="#BlueTriangles"/>
+      <g transform="translate(275,25)">
+        <use xlink:href="#Red100" filter="url(#overFlood)" />
+        <use xlink:href="#Red50" filter="url(#overFlood)" />
+        <text x="5" y="275">over</text>
+      </g>
+      <g transform="translate(400,25)">
+        <use xlink:href="#Red100" filter="url(#inFlood)" />
+        <use xlink:href="#Red50" filter="url(#inFlood)" />
+        <text x="35" y="275">in</text>
+      </g>
+      <g transform="translate(525,25)">
+        <use xlink:href="#Red100" filter="url(#outFlood)" />
+        <use xlink:href="#Red50" filter="url(#outFlood)" />
+        <text x="15" y="275">out</text>
+      </g>
+      <g transform="translate(650,25)">
+        <use xlink:href="#Red100" filter="url(#atopFlood)" />
+        <use xlink:href="#Red50" filter="url(#atopFlood)" />
+        <text x="10" y="275">atop</text>
+      </g>
+      <g transform="translate(775,25)">
+        <use xlink:href="#Red100" filter="url(#xorFlood)" />
+        <use xlink:href="#Red50" filter="url(#xorFlood)" />
+        <text x="15" y="275">xor</text>
+      </g>
+      <g transform="translate(900,25)">
+        <use xlink:href="#Red100" filter="url(#arithmeticFlood)" />
+        <use xlink:href="#Red50" filter="url(#arithmeticFlood)" />
+        <text x="-25" y="275">arithmetic</text>
+      </g>
+    </g>
+    <g transform="translate(0,325)" enable-background="new">
+    <desc>Render the examples using the filters that do not obliterate
+          the background, thus sometimes causing the background to continue
+          to appear in some cases, and in other cases the background
+          image blends into itself ("double-counting").</desc>
+      <text x="15" y="75">opacity 1.0</text>
+      <text x="15" y="115" font-size="27">(without feFlood)</text>
+      <text x="15" y="200">opacity 0.5</text>
+      <text x="15" y="240" font-size="27">(without feFlood)</text>
+      <use xlink:href="#BlueTriangles"/>
+      <g transform="translate(275,25)">
+        <use xlink:href="#Red100" filter="url(#overNoFlood)" />
+        <use xlink:href="#Red50" filter="url(#overNoFlood)" />
+        <text x="5" y="275">over</text>
+      </g>
+      <g transform="translate(400,25)">
+        <use xlink:href="#Red100" filter="url(#inNoFlood)" />
+        <use xlink:href="#Red50" filter="url(#inNoFlood)" />
+        <text x="35" y="275">in</text>
+      </g>
+      <g transform="translate(525,25)">
+        <use xlink:href="#Red100" filter="url(#outNoFlood)" />
+        <use xlink:href="#Red50" filter="url(#outNoFlood)" />
+        <text x="15" y="275">out</text>
+      </g>
+      <g transform="translate(650,25)">
+        <use xlink:href="#Red100" filter="url(#atopNoFlood)" />
+        <use xlink:href="#Red50" filter="url(#atopNoFlood)" />
+        <text x="10" y="275">atop</text>
+      </g>
+      <g transform="translate(775,25)">
+        <use xlink:href="#Red100" filter="url(#xorNoFlood)" />
+        <use xlink:href="#Red50" filter="url(#xorNoFlood)" />
+        <text x="15" y="275">xor</text>
+      </g>
+      <g transform="translate(900,25)">
+        <use xlink:href="#Red100" filter="url(#arithmeticNoFlood)" />
+        <use xlink:href="#Red50" filter="url(#arithmeticNoFlood)" />
+        <text x="-25" y="275">arithmetic</text>
+      </g>
+    </g>
+  </g>
+</svg>
+
+ +

Résultat

+ +

Cette image affine le résultat désiré.

+ +

Example feComposite — Examples of feComposite operations

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feCompositeElement', '<feComposite>')}}{{Spec2('Filters 1.0')}}Ajoute la valeur lighter pour l'attribut operator.
{{SpecName('SVG1.1', 'filters.html#feCompositeElement', '<feComposite>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/feconvolvematrix/index.html b/files/fr/web/svg/element/feconvolvematrix/index.html deleted file mode 100644 index 21e05a3104..0000000000 --- a/files/fr/web/svg/element/feconvolvematrix/index.html +++ /dev/null @@ -1,167 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feConvolveMatrix -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feConvolveMatrix ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feConvolveMatrix> applique une matrice de convolution d'effet de filtre. Une convolution combine les pixels de l'image en entrée avec ceux voisins pour donner une image résultante. On peut obtenir une grande variété d'opérations d'imagerie à l'aide de convolutions, dont le flou, la détection de bord, la netteté, l'estampage et le chanfreinage.

- -

Une convolution de matrice se fonde sur une matrice n par m (le noyau de convolution), qui décrit la façon dont une valeur de pixel donné de l'image en entrée est combinée avec celles des pixels de son voisinage pour aboutir à une valeur de pixel résultante. Chaque pixel du résultat est déterminé par l'application de la matrice noyau sur le pixel source correspondant et ses pixels voisins. La formule de convolution de base, appliquée à chaque valeur de couleur d'un pixel donné, est :

- -

COLORX,Y = ( 
-               SUM I=0 to [orderY-1] { 
-                 SUM J=0 to [orderX-1] { 
-                   SOURCE X-targetX+J, Y-targetY+I *  kernelMatrixorderX-J-1,  orderY-I-1 
-                 } 
-               } 
-             ) /  divisor +  bias * ALPHAX,Y 

- -

dans laquelle

- -
    -
  • "orderX" et "orderY" représentent les valeurs X et Y pour l'attribut {{SVGAttr("order")}},
  • -
  • "targetX" représente la valeur de l'attribut {{SVGAttr("targetX")}},
  • -
  • "targetY" la valeur de l'attribut {{SVGAttr("targetY")}},
  • -
  • "kernelMatrix" celle de l'attribut {{SVGAttr("kernelMatrix")}},
  • -
  • "divisor" celle de l'attribut {{SVGAttr("divisor")}}
  • -
  • et "bias" la valeur de l'attribut {{SVGAttr("bias")}}.
  • -
- -

Remarquez dans la formule ci-dessus que les valeurs de la matrice noyau sont appliquées de telle manière que cette matrice noyau soit tournée de 180 degrés par rapport aux images de source et de destination, pour correspondre avec la théorie de la convolution telle qu'elle est décrite dans de nombreux ouvrages sur l'infographie.

- -

Pour illustrer, supposons que l'on ait une image en entrée, de 5x5 pixels, dont les valeurs de couleur pour l'un des canaux de couleur sont les suivantes:

- -
0    20  40 235 235
-100 120 140 235 235
-200 220 240 235 235
-225 225 255 255 255
-225 225 255 255 255
-
- -

et que l'on définit un noyau de convolution de 3x3 comme ceci:

- -
1 2 3
-4 5 6
-7 8 9
-
- -

Concentrons-nous sur la valeur de couleur de la deuxième ligne, deuxième colonne (la valeur du pixel source est 120). En supposant le cas le plus simple (quand le quadrillage de pixels de l'image source s'aligne parfaitement avec celui du noyau) et en supposant les valeurs par défaut des attributs divisor, targetX et targetY, alors la valeur de couleur résultante sera :

- -
(9*  0 + 8* 20 + 7* 40 +
- 6*100 + 5*120 + 4*140 +
- 3*200 + 2*220 + 1*240) / (9+8+7+6+5+4+3+2+1)
- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("in")}}
  • -
  • {{SVGAttr("order")}}
  • -
  • {{SVGAttr("kernelMatrix")}}
  • -
  • {{SVGAttr("divisor")}}
  • -
  • {{SVGAttr("bias")}}
  • -
  • {{SVGAttr("targetX")}}
  • -
  • {{SVGAttr("targetY")}}
  • -
  • {{SVGAttr("edgeMode")}}
  • -
  • {{SVGAttr("kernelUnitLength")}}
  • -
  • {{SVGAttr("preserveAlpha")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

SVG

- -
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"
-    xmlns:xlink="http://www.w3.org/1999/xlink">
-  <defs>
-    <filter id="emboss">
-      <feConvolveMatrix
-          kernelMatrix="3 0 0
-                        0 0 0
-                        0 0 -3"/>
-    </filter>
-  </defs>
-
-  <image xlink:href="/files/12668/MDN.svg" x="0" y="0"
-      height="200" width="200" style="filter:url(#emboss);" />
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 200, 210)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feConvolveMatrixElement", "<feConvolveMatrix>")}}{{Spec2("Filters 1.0")}} 
{{SpecName("SVG1.1", "filters.html#feConvolveMatrixElement", "<feConvolveMatrix>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/feconvolvematrix/index.md b/files/fr/web/svg/element/feconvolvematrix/index.md new file mode 100644 index 0000000000..21e05a3104 --- /dev/null +++ b/files/fr/web/svg/element/feconvolvematrix/index.md @@ -0,0 +1,167 @@ +--- +title: +slug: Web/SVG/Element/feConvolveMatrix +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feConvolveMatrix +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feConvolveMatrix> applique une matrice de convolution d'effet de filtre. Une convolution combine les pixels de l'image en entrée avec ceux voisins pour donner une image résultante. On peut obtenir une grande variété d'opérations d'imagerie à l'aide de convolutions, dont le flou, la détection de bord, la netteté, l'estampage et le chanfreinage.

+ +

Une convolution de matrice se fonde sur une matrice n par m (le noyau de convolution), qui décrit la façon dont une valeur de pixel donné de l'image en entrée est combinée avec celles des pixels de son voisinage pour aboutir à une valeur de pixel résultante. Chaque pixel du résultat est déterminé par l'application de la matrice noyau sur le pixel source correspondant et ses pixels voisins. La formule de convolution de base, appliquée à chaque valeur de couleur d'un pixel donné, est :

+ +

COLORX,Y = ( 
+               SUM I=0 to [orderY-1] { 
+                 SUM J=0 to [orderX-1] { 
+                   SOURCE X-targetX+J, Y-targetY+I *  kernelMatrixorderX-J-1,  orderY-I-1 
+                 } 
+               } 
+             ) /  divisor +  bias * ALPHAX,Y 

+ +

dans laquelle

+ +
    +
  • "orderX" et "orderY" représentent les valeurs X et Y pour l'attribut {{SVGAttr("order")}},
  • +
  • "targetX" représente la valeur de l'attribut {{SVGAttr("targetX")}},
  • +
  • "targetY" la valeur de l'attribut {{SVGAttr("targetY")}},
  • +
  • "kernelMatrix" celle de l'attribut {{SVGAttr("kernelMatrix")}},
  • +
  • "divisor" celle de l'attribut {{SVGAttr("divisor")}}
  • +
  • et "bias" la valeur de l'attribut {{SVGAttr("bias")}}.
  • +
+ +

Remarquez dans la formule ci-dessus que les valeurs de la matrice noyau sont appliquées de telle manière que cette matrice noyau soit tournée de 180 degrés par rapport aux images de source et de destination, pour correspondre avec la théorie de la convolution telle qu'elle est décrite dans de nombreux ouvrages sur l'infographie.

+ +

Pour illustrer, supposons que l'on ait une image en entrée, de 5x5 pixels, dont les valeurs de couleur pour l'un des canaux de couleur sont les suivantes:

+ +
0    20  40 235 235
+100 120 140 235 235
+200 220 240 235 235
+225 225 255 255 255
+225 225 255 255 255
+
+ +

et que l'on définit un noyau de convolution de 3x3 comme ceci:

+ +
1 2 3
+4 5 6
+7 8 9
+
+ +

Concentrons-nous sur la valeur de couleur de la deuxième ligne, deuxième colonne (la valeur du pixel source est 120). En supposant le cas le plus simple (quand le quadrillage de pixels de l'image source s'aligne parfaitement avec celui du noyau) et en supposant les valeurs par défaut des attributs divisor, targetX et targetY, alors la valeur de couleur résultante sera :

+ +
(9*  0 + 8* 20 + 7* 40 +
+ 6*100 + 5*120 + 4*140 +
+ 3*200 + 2*220 + 1*240) / (9+8+7+6+5+4+3+2+1)
+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("in")}}
  • +
  • {{SVGAttr("order")}}
  • +
  • {{SVGAttr("kernelMatrix")}}
  • +
  • {{SVGAttr("divisor")}}
  • +
  • {{SVGAttr("bias")}}
  • +
  • {{SVGAttr("targetX")}}
  • +
  • {{SVGAttr("targetY")}}
  • +
  • {{SVGAttr("edgeMode")}}
  • +
  • {{SVGAttr("kernelUnitLength")}}
  • +
  • {{SVGAttr("preserveAlpha")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"
+    xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+    <filter id="emboss">
+      <feConvolveMatrix
+          kernelMatrix="3 0 0
+                        0 0 0
+                        0 0 -3"/>
+    </filter>
+  </defs>
+
+  <image xlink:href="/files/12668/MDN.svg" x="0" y="0"
+      height="200" width="200" style="filter:url(#emboss);" />
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 200, 210)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feConvolveMatrixElement", "<feConvolveMatrix>")}}{{Spec2("Filters 1.0")}} 
{{SpecName("SVG1.1", "filters.html#feConvolveMatrixElement", "<feConvolveMatrix>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fediffuselighting/index.html b/files/fr/web/svg/element/fediffuselighting/index.html deleted file mode 100644 index c53a5f6d4c..0000000000 --- a/files/fr/web/svg/element/fediffuselighting/index.html +++ /dev/null @@ -1,161 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feDiffuseLighting -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feDiffuseLighting ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feDiffuseLighting> éclaire une image en utilisant son canal alpha en tant que relief. L'image résultante, qui est une image RGBA opaque, dépend de la couleur de la lumière, de sa position et du relief de l'image en entrée.

- -

La lumière crée par cette primitive de filtre peut être combinée avec une image de texture à l'aide de l'opérateur arithmetic de la primitive de filtre {{SVGElement("feComposite")}}. De multiples sources lumineuses peuvent être simulées en ajoutant plusieurs éléments à la texture.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("in")}}
  • -
  • {{SVGAttr("surfaceScale")}}
  • -
  • {{SVGAttr("diffuseConstant")}}
  • -
  • {{SVGAttr("kernelUnitLength")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

L'exemple suivant montre l'effet de l'élément <feDiffuseLighting> sur un cercle avec chaque type de lumière disponible. À chaque fois, la lumière vient du coin supérieur gauche.

- -
<svg width="440" height="140" xmlns="http://www.w3.org/2000/svg">
-
-  <!-- Aucune lumière n'est appliquée -->
-  <text text-anchor="middle" x="60" y="22">No Light</text>
-  <circle cx="60" cy="80" r="50" fill="green" />
-
-  <!-- La source lumineuse est un élément fePointLight -->
-  <text text-anchor="middle" x="170" y="22">fePointLight</text>
-  <filter id="lightMe1">
-    <feDiffuseLighting in="SourceGraphic" result="light"
-        lighting-color="white">
-      <fePointLight x="150" y="60" z="20" />
-    </feDiffuseLighting>
-
-    <feComposite in="SourceGraphic" in2="light"
-                 operator="arithmetic" k1="1" k2="0" k3="0" k4="0"/>
-  </filter>
-
-  <circle cx="170" cy="80" r="50" fill="green"
-      filter="url(#lightMe1)" />
-
-  <!-- La source lumineuse est un élément feDistantLight -->
-  <text text-anchor="middle" x="280" y="22">feDistantLight</text>
-  <filter id="lightMe2">
-    <feDiffuseLighting in="SourceGraphic" result="light"
-        lighting-color="white">
-      <feDistantLight azimuth="240" elevation="20"/>
-    </feDiffuseLighting>
-
-    <feComposite in="SourceGraphic" in2="light"
-                 operator="arithmetic" k1="1" k2="0" k3="0" k4="0"/>
-  </filter>
-
-  <circle cx="280" cy="80" r="50" fill="green"
-      filter="url(#lightMe2)" />
-
-  <!-- La source lumineuse est un élément feSpotLight -->
-  <text text-anchor="middle" x="390" y="22">feSpotLight</text>
-  <filter id="lightMe3">
-    <feDiffuseLighting in="SourceGraphic" result="light"
-        lighting-color="white">
-      <feSpotLight x="360" y="5" z="30" limitingConeAngle="20"
-                   pointsAtX="390" pointsAtY="80" pointsAtZ="0"/>
-    </feDiffuseLighting>
-
-    <feComposite in="SourceGraphic" in2="light"
-                 operator="arithmetic" k1="1" k2="0" k3="0" k4="0"/>
-  </filter>
-
-  <circle cx="390" cy="80" r="50" fill="green"
-      filter="url(#lightMe3)" />
-</svg>
- -

Résultat attendu:

- -

Expected rendering for the example

- -

Rendu en direct:

- -

{{EmbedLiveSample("Exemple", 470, 170)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feDiffuseLightingElement', '<feDiffuseLighting>')}}{{Spec2('Filters 1.0')}}Déprécie l'attribut kernelUnitLength
{{SpecName('SVG1.1', 'filters.html#feDiffuseLightingElement', '<feDiffuseLighting>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feDistantLight")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("fePointLight")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feSpotLight")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fediffuselighting/index.md b/files/fr/web/svg/element/fediffuselighting/index.md new file mode 100644 index 0000000000..c53a5f6d4c --- /dev/null +++ b/files/fr/web/svg/element/fediffuselighting/index.md @@ -0,0 +1,161 @@ +--- +title: +slug: Web/SVG/Element/feDiffuseLighting +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feDiffuseLighting +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feDiffuseLighting> éclaire une image en utilisant son canal alpha en tant que relief. L'image résultante, qui est une image RGBA opaque, dépend de la couleur de la lumière, de sa position et du relief de l'image en entrée.

+ +

La lumière crée par cette primitive de filtre peut être combinée avec une image de texture à l'aide de l'opérateur arithmetic de la primitive de filtre {{SVGElement("feComposite")}}. De multiples sources lumineuses peuvent être simulées en ajoutant plusieurs éléments à la texture.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("in")}}
  • +
  • {{SVGAttr("surfaceScale")}}
  • +
  • {{SVGAttr("diffuseConstant")}}
  • +
  • {{SVGAttr("kernelUnitLength")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

L'exemple suivant montre l'effet de l'élément <feDiffuseLighting> sur un cercle avec chaque type de lumière disponible. À chaque fois, la lumière vient du coin supérieur gauche.

+ +
<svg width="440" height="140" xmlns="http://www.w3.org/2000/svg">
+
+  <!-- Aucune lumière n'est appliquée -->
+  <text text-anchor="middle" x="60" y="22">No Light</text>
+  <circle cx="60" cy="80" r="50" fill="green" />
+
+  <!-- La source lumineuse est un élément fePointLight -->
+  <text text-anchor="middle" x="170" y="22">fePointLight</text>
+  <filter id="lightMe1">
+    <feDiffuseLighting in="SourceGraphic" result="light"
+        lighting-color="white">
+      <fePointLight x="150" y="60" z="20" />
+    </feDiffuseLighting>
+
+    <feComposite in="SourceGraphic" in2="light"
+                 operator="arithmetic" k1="1" k2="0" k3="0" k4="0"/>
+  </filter>
+
+  <circle cx="170" cy="80" r="50" fill="green"
+      filter="url(#lightMe1)" />
+
+  <!-- La source lumineuse est un élément feDistantLight -->
+  <text text-anchor="middle" x="280" y="22">feDistantLight</text>
+  <filter id="lightMe2">
+    <feDiffuseLighting in="SourceGraphic" result="light"
+        lighting-color="white">
+      <feDistantLight azimuth="240" elevation="20"/>
+    </feDiffuseLighting>
+
+    <feComposite in="SourceGraphic" in2="light"
+                 operator="arithmetic" k1="1" k2="0" k3="0" k4="0"/>
+  </filter>
+
+  <circle cx="280" cy="80" r="50" fill="green"
+      filter="url(#lightMe2)" />
+
+  <!-- La source lumineuse est un élément feSpotLight -->
+  <text text-anchor="middle" x="390" y="22">feSpotLight</text>
+  <filter id="lightMe3">
+    <feDiffuseLighting in="SourceGraphic" result="light"
+        lighting-color="white">
+      <feSpotLight x="360" y="5" z="30" limitingConeAngle="20"
+                   pointsAtX="390" pointsAtY="80" pointsAtZ="0"/>
+    </feDiffuseLighting>
+
+    <feComposite in="SourceGraphic" in2="light"
+                 operator="arithmetic" k1="1" k2="0" k3="0" k4="0"/>
+  </filter>
+
+  <circle cx="390" cy="80" r="50" fill="green"
+      filter="url(#lightMe3)" />
+</svg>
+ +

Résultat attendu:

+ +

Expected rendering for the example

+ +

Rendu en direct:

+ +

{{EmbedLiveSample("Exemple", 470, 170)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feDiffuseLightingElement', '<feDiffuseLighting>')}}{{Spec2('Filters 1.0')}}Déprécie l'attribut kernelUnitLength
{{SpecName('SVG1.1', 'filters.html#feDiffuseLightingElement', '<feDiffuseLighting>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feDistantLight")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("fePointLight")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feSpotLight")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fedisplacementmap/index.html b/files/fr/web/svg/element/fedisplacementmap/index.html deleted file mode 100644 index 0376d57594..0000000000 --- a/files/fr/web/svg/element/fedisplacementmap/index.html +++ /dev/null @@ -1,117 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feDisplacementMap -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feDisplacementMap ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feDisplacementMap> utilise les valeurs de pixel de l'image de {{SVGAttr("in2")}} pour déplacer spatialement l'image de {{SVGAttr("in")}}.

- -

La formule utilisée pour la transformation est comme suit:

- -
P'(x,y) ← P( x + scale * (XC(x,y) - 0.5), y + scale * (YC(x,y) - 0.5))
- -

P(x,y) est l'image en entrée, {{SVGAttr("in")}}, et P'(x,y) est la destination. XC(x,y) et YC(x,y) sont les valeurs des composants du canal désigné par {{SVGAttr("xChannelSelector")}} et {{SVGAttr("yChannelSelector")}}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("in")}}
  • -
  • {{SVGAttr("in2")}}
  • -
  • {{SVGAttr("scale")}}
  • -
  • {{SVGAttr("xChannelSelector")}}
  • -
  • {{SVGAttr("yChannelSelector")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -
<svg width="200" height="200" viewBox="0 0 220 220"
-     xmlns="http://www.w3.org/2000/svg">
-  <filter id="displacementFilter">
-    <feTurbulence type="turbulence" baseFrequency="0.05"
-        numOctaves="2" result="turbulence"/>
-    <feDisplacementMap in2="turbulence" in="SourceGraphic"
-        scale="50" xChannelSelector="R" yChannelSelector="G"/>
-  </filter>
-
-  <circle cx="100" cy="100" r="100"
-      style="filter: url(#displacementFilter)"/>
-</svg>
- -

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

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feDisplacementMapElement', '<feDisplacementMap>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feDisplacementMapElement', '<feDisplacementMap>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fedisplacementmap/index.md b/files/fr/web/svg/element/fedisplacementmap/index.md new file mode 100644 index 0000000000..0376d57594 --- /dev/null +++ b/files/fr/web/svg/element/fedisplacementmap/index.md @@ -0,0 +1,117 @@ +--- +title: +slug: Web/SVG/Element/feDisplacementMap +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feDisplacementMap +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feDisplacementMap> utilise les valeurs de pixel de l'image de {{SVGAttr("in2")}} pour déplacer spatialement l'image de {{SVGAttr("in")}}.

+ +

La formule utilisée pour la transformation est comme suit:

+ +
P'(x,y) ← P( x + scale * (XC(x,y) - 0.5), y + scale * (YC(x,y) - 0.5))
+ +

P(x,y) est l'image en entrée, {{SVGAttr("in")}}, et P'(x,y) est la destination. XC(x,y) et YC(x,y) sont les valeurs des composants du canal désigné par {{SVGAttr("xChannelSelector")}} et {{SVGAttr("yChannelSelector")}}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("in")}}
  • +
  • {{SVGAttr("in2")}}
  • +
  • {{SVGAttr("scale")}}
  • +
  • {{SVGAttr("xChannelSelector")}}
  • +
  • {{SVGAttr("yChannelSelector")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +
<svg width="200" height="200" viewBox="0 0 220 220"
+     xmlns="http://www.w3.org/2000/svg">
+  <filter id="displacementFilter">
+    <feTurbulence type="turbulence" baseFrequency="0.05"
+        numOctaves="2" result="turbulence"/>
+    <feDisplacementMap in2="turbulence" in="SourceGraphic"
+        scale="50" xChannelSelector="R" yChannelSelector="G"/>
+  </filter>
+
+  <circle cx="100" cy="100" r="100"
+      style="filter: url(#displacementFilter)"/>
+</svg>
+ +

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

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feDisplacementMapElement', '<feDisplacementMap>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feDisplacementMapElement', '<feDisplacementMap>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fedistantlight/index.html b/files/fr/web/svg/element/fedistantlight/index.html deleted file mode 100644 index e4488358c4..0000000000 --- a/files/fr/web/svg/element/fedistantlight/index.html +++ /dev/null @@ -1,77 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feDistantLight -tags: - - Element - - SVG - - SVG Filter - - SVG Light Source -translation_of: Web/SVG/Element/feDistantLight ---- -
{{SVGRef}}
- -

La primitive de filtre <feDistantLight> définit une source de lumière distante, que l'on place dans une primitive de filtre d'éclairage:{{SVGElement("feDiffuseLighting")}} ou {{SVGElement("feSpecularLighting")}}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("azimuth")}}
  • -
  • {{SVGAttr("elevation")}}
  • -
- -

Interface DOM

- -

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

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feDistantLightElement', '<feDistantLight>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feDistantLightElement', '<feDistantLight>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("fePointLight")}}
  • -
  • {{SVGElement("feSpotLight")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fedistantlight/index.md b/files/fr/web/svg/element/fedistantlight/index.md new file mode 100644 index 0000000000..e4488358c4 --- /dev/null +++ b/files/fr/web/svg/element/fedistantlight/index.md @@ -0,0 +1,77 @@ +--- +title: +slug: Web/SVG/Element/feDistantLight +tags: + - Element + - SVG + - SVG Filter + - SVG Light Source +translation_of: Web/SVG/Element/feDistantLight +--- +
{{SVGRef}}
+ +

La primitive de filtre <feDistantLight> définit une source de lumière distante, que l'on place dans une primitive de filtre d'éclairage:{{SVGElement("feDiffuseLighting")}} ou {{SVGElement("feSpecularLighting")}}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("azimuth")}}
  • +
  • {{SVGAttr("elevation")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feDistantLightElement', '<feDistantLight>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feDistantLightElement', '<feDistantLight>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("fePointLight")}}
  • +
  • {{SVGElement("feSpotLight")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fedropshadow/index.html b/files/fr/web/svg/element/fedropshadow/index.html deleted file mode 100644 index 391d58637e..0000000000 --- a/files/fr/web/svg/element/fedropshadow/index.html +++ /dev/null @@ -1,108 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feDropShadow -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feDropShadow ---- -
{{SVGRef}}
- -

La primitive de filtre <feDropShadow> crée une ombre portée pour l'image en entrée. Il s'agit d'un raccourci, le résultat du filtre <feDropShadow> revient à appliquer les primitives suivantes:

- -
<feGaussianBlur in="alpha-channel-of-feDropShadow-in"
-    stdDeviation="stdDeviation-of-feDropShadow"/>
-<feOffset dx="dx-of-feDropShadow" dy="dy-of-feDropShadow"
-    result="offsetblur"/>
-<feFlood flood-color="flood-color-of-feDropShadow"
-    flood-opacity="flood-opacity-of-feDropShadow"/>
-<feComposite in2="offsetblur" operator="in"/>
-<feMerge>
-  <feMergeNode/>
-  <feMergeNode in="in-of-feDropShadow"/>
-</feMerge>
-
- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("class")}}
  • -
  • {{SVGAttr("style")}}
  • -
  • {{SVGAttr("in")}}
  • -
  • {{SVGAttr("stdDeviation")}}
  • -
  • {{SVGAttr("dx")}}
  • -
  • {{SVGAttr("dy")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

SVG

- -
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
-  <defs>
-    <filter id="shadow">
-      <feDropShadow dx="4" dy="8" stdDeviation="4"/>
-    </filter>
-  </defs>
-
-  <circle cx="50%" cy="50%" r="80"
-      style="fill:blue; filter:url(#shadow);"/>
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 200, 200)}}

- -

Spécifications

- - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feDropShadow", "<feDistantLight>")}}{{Spec2("Filters 1.0")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fedropshadow/index.md b/files/fr/web/svg/element/fedropshadow/index.md new file mode 100644 index 0000000000..391d58637e --- /dev/null +++ b/files/fr/web/svg/element/fedropshadow/index.md @@ -0,0 +1,108 @@ +--- +title: +slug: Web/SVG/Element/feDropShadow +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feDropShadow +--- +
{{SVGRef}}
+ +

La primitive de filtre <feDropShadow> crée une ombre portée pour l'image en entrée. Il s'agit d'un raccourci, le résultat du filtre <feDropShadow> revient à appliquer les primitives suivantes:

+ +
<feGaussianBlur in="alpha-channel-of-feDropShadow-in"
+    stdDeviation="stdDeviation-of-feDropShadow"/>
+<feOffset dx="dx-of-feDropShadow" dy="dy-of-feDropShadow"
+    result="offsetblur"/>
+<feFlood flood-color="flood-color-of-feDropShadow"
+    flood-opacity="flood-opacity-of-feDropShadow"/>
+<feComposite in2="offsetblur" operator="in"/>
+<feMerge>
+  <feMergeNode/>
+  <feMergeNode in="in-of-feDropShadow"/>
+</feMerge>
+
+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("class")}}
  • +
  • {{SVGAttr("style")}}
  • +
  • {{SVGAttr("in")}}
  • +
  • {{SVGAttr("stdDeviation")}}
  • +
  • {{SVGAttr("dx")}}
  • +
  • {{SVGAttr("dy")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
+  <defs>
+    <filter id="shadow">
+      <feDropShadow dx="4" dy="8" stdDeviation="4"/>
+    </filter>
+  </defs>
+
+  <circle cx="50%" cy="50%" r="80"
+      style="fill:blue; filter:url(#shadow);"/>
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 200, 200)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feDropShadow", "<feDistantLight>")}}{{Spec2("Filters 1.0")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/feflood/index.html b/files/fr/web/svg/element/feflood/index.html deleted file mode 100644 index b5f47f0e41..0000000000 --- a/files/fr/web/svg/element/feflood/index.html +++ /dev/null @@ -1,108 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feFlood -tags: - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feFlood ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feFlood> remplit la région du filtre avec la couleur et l'opacité définies par {{SVGAttr("flood-color")}} et {{SVGAttr("flood-opacity")}}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("flood-color")}}
  • -
  • {{SVGAttr("flood-opacity")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
-  <defs>
-    <filter id="floodFilter" filterUnits="userSpaceOnUse">
-      <feFlood x="50" y="50" width="100" height="100"
-          flood-color="green" flood-opacity="0.5"/>
-    </filter>
-  </defs>
-
-  <use style="filter: url(#floodFilter);"/>
-</svg>
- -

{{EmbedLiveSample("Exemple", 200, 200)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feFloodElement', '<feFlood>')}}{{Spec2('Filters 1.0')}} -

Supprime la valeur <icccolor> de la propriété {{cssxref("flood-color")}} et définit que le canal alpha est multiplié par la valeur de la propriété {{cssxref("flood-opacity")}}. Clarifie la valeur de la propriété flood-opacity.

-
{{SpecName('SVG1.1', 'filters.html#feFloodElement', '<feFlood>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("animateColor")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Les filtres
  • -
diff --git a/files/fr/web/svg/element/feflood/index.md b/files/fr/web/svg/element/feflood/index.md new file mode 100644 index 0000000000..b5f47f0e41 --- /dev/null +++ b/files/fr/web/svg/element/feflood/index.md @@ -0,0 +1,108 @@ +--- +title: +slug: Web/SVG/Element/feFlood +tags: + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feFlood +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feFlood> remplit la région du filtre avec la couleur et l'opacité définies par {{SVGAttr("flood-color")}} et {{SVGAttr("flood-opacity")}}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("flood-color")}}
  • +
  • {{SVGAttr("flood-opacity")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
+  <defs>
+    <filter id="floodFilter" filterUnits="userSpaceOnUse">
+      <feFlood x="50" y="50" width="100" height="100"
+          flood-color="green" flood-opacity="0.5"/>
+    </filter>
+  </defs>
+
+  <use style="filter: url(#floodFilter);"/>
+</svg>
+ +

{{EmbedLiveSample("Exemple", 200, 200)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feFloodElement', '<feFlood>')}}{{Spec2('Filters 1.0')}} +

Supprime la valeur <icccolor> de la propriété {{cssxref("flood-color")}} et définit que le canal alpha est multiplié par la valeur de la propriété {{cssxref("flood-opacity")}}. Clarifie la valeur de la propriété flood-opacity.

+
{{SpecName('SVG1.1', 'filters.html#feFloodElement', '<feFlood>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("animateColor")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Les filtres
  • +
diff --git a/files/fr/web/svg/element/fefunca/index.html b/files/fr/web/svg/element/fefunca/index.html deleted file mode 100644 index 3dd5f8b995..0000000000 --- a/files/fr/web/svg/element/fefunca/index.html +++ /dev/null @@ -1,74 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feFuncA -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feFuncA ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feFuncA> doit être placée dans une balise {{SVGElement("feComponentTransfer")}} et elle définit la fonction de transfert pour le canal alpha (opacité) de l'image en entrée.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -

Aucun

- -

Interface DOM

- -

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

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feFuncAElement", "<feFuncA>")}}{{Spec2("Filters 1.0")}}Aucun changement
{{SpecName("SVG1.1", "filters.html#feFuncAElement", "<feFuncA>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feFuncR")}}
  • -
  • {{SVGElement("feFuncB")}}
  • -
  • {{SVGElement("feFuncG")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fefunca/index.md b/files/fr/web/svg/element/fefunca/index.md new file mode 100644 index 0000000000..3dd5f8b995 --- /dev/null +++ b/files/fr/web/svg/element/fefunca/index.md @@ -0,0 +1,74 @@ +--- +title: +slug: Web/SVG/Element/feFuncA +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feFuncA +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feFuncA> doit être placée dans une balise {{SVGElement("feComponentTransfer")}} et elle définit la fonction de transfert pour le canal alpha (opacité) de l'image en entrée.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +

Aucun

+ +

Interface DOM

+ +

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

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feFuncAElement", "<feFuncA>")}}{{Spec2("Filters 1.0")}}Aucun changement
{{SpecName("SVG1.1", "filters.html#feFuncAElement", "<feFuncA>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feFuncR")}}
  • +
  • {{SVGElement("feFuncB")}}
  • +
  • {{SVGElement("feFuncG")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fefuncb/index.html b/files/fr/web/svg/element/fefuncb/index.html deleted file mode 100644 index 8878ca2355..0000000000 --- a/files/fr/web/svg/element/fefuncb/index.html +++ /dev/null @@ -1,74 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feFuncB -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feFuncB ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feFuncB> doit être placée dans une balise {{SVGElement("feComponentTransfer")}} et elle définit la fonction de transfert pour le canal bleu de l'image en entrée.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -

Aucun

- -

Interface DOM

- -

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

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feFuncBElement', '<feFuncB>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feFuncBElement', '<feFuncB>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feFuncA")}}
  • -
  • {{SVGElement("feFuncR")}}
  • -
  • {{SVGElement("feFuncG")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fefuncb/index.md b/files/fr/web/svg/element/fefuncb/index.md new file mode 100644 index 0000000000..8878ca2355 --- /dev/null +++ b/files/fr/web/svg/element/fefuncb/index.md @@ -0,0 +1,74 @@ +--- +title: +slug: Web/SVG/Element/feFuncB +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feFuncB +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feFuncB> doit être placée dans une balise {{SVGElement("feComponentTransfer")}} et elle définit la fonction de transfert pour le canal bleu de l'image en entrée.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +

Aucun

+ +

Interface DOM

+ +

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

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feFuncBElement', '<feFuncB>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feFuncBElement', '<feFuncB>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feFuncA")}}
  • +
  • {{SVGElement("feFuncR")}}
  • +
  • {{SVGElement("feFuncG")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fefuncg/index.html b/files/fr/web/svg/element/fefuncg/index.html deleted file mode 100644 index 9daf12ed8c..0000000000 --- a/files/fr/web/svg/element/fefuncg/index.html +++ /dev/null @@ -1,74 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feFuncG -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feFuncG ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feFuncG> doit être placée dans une balise {{SVGElement("feComponentTransfer")}} et elle définit la fonction de transfert pour le canal vert de l'image en entrée.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -

Aucun

- -

Interface DOM

- -

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

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feFuncGElement", "<feFuncG>")}}{{Spec2("Filters 1.0")}}Aucun changement
{{SpecName("SVG1.1", "filters.html#feFuncGElement", "<feFuncG>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feFuncA")}}
  • -
  • {{SVGElement("feFuncR")}}
  • -
  • {{SVGElement("feFuncB")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fefuncg/index.md b/files/fr/web/svg/element/fefuncg/index.md new file mode 100644 index 0000000000..9daf12ed8c --- /dev/null +++ b/files/fr/web/svg/element/fefuncg/index.md @@ -0,0 +1,74 @@ +--- +title: +slug: Web/SVG/Element/feFuncG +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feFuncG +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feFuncG> doit être placée dans une balise {{SVGElement("feComponentTransfer")}} et elle définit la fonction de transfert pour le canal vert de l'image en entrée.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +

Aucun

+ +

Interface DOM

+ +

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

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feFuncGElement", "<feFuncG>")}}{{Spec2("Filters 1.0")}}Aucun changement
{{SpecName("SVG1.1", "filters.html#feFuncGElement", "<feFuncG>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feFuncA")}}
  • +
  • {{SVGElement("feFuncR")}}
  • +
  • {{SVGElement("feFuncB")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fefuncr/index.html b/files/fr/web/svg/element/fefuncr/index.html deleted file mode 100644 index e606564ecd..0000000000 --- a/files/fr/web/svg/element/fefuncr/index.html +++ /dev/null @@ -1,74 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feFuncR -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feFuncR ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feFuncR> doit être placée dans une balise {{SVGElement("feComponentTransfer")}} et elle définit la fonction de transfert pour le canal rouge de l'image en entrée.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -

Aucun

- -

Interface DOM

- -

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

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feFuncRElement', '<feFuncR>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feFuncRElement', '<feFuncR>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feFuncA")}}
  • -
  • {{SVGElement("feFuncB")}}
  • -
  • {{SVGElement("feFuncG")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fefuncr/index.md b/files/fr/web/svg/element/fefuncr/index.md new file mode 100644 index 0000000000..e606564ecd --- /dev/null +++ b/files/fr/web/svg/element/fefuncr/index.md @@ -0,0 +1,74 @@ +--- +title: +slug: Web/SVG/Element/feFuncR +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feFuncR +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feFuncR> doit être placée dans une balise {{SVGElement("feComponentTransfer")}} et elle définit la fonction de transfert pour le canal rouge de l'image en entrée.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +

Aucun

+ +

Interface DOM

+ +

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

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feFuncRElement', '<feFuncR>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feFuncRElement', '<feFuncR>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feFuncA")}}
  • +
  • {{SVGElement("feFuncB")}}
  • +
  • {{SVGElement("feFuncG")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fegaussianblur/index.html b/files/fr/web/svg/element/fegaussianblur/index.html deleted file mode 100644 index c2a9fdbe70..0000000000 --- a/files/fr/web/svg/element/fegaussianblur/index.html +++ /dev/null @@ -1,135 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feGaussianBlur -translation_of: Web/SVG/Element/feGaussianBlur ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feGaussianBlur> applique un effet de flou à l'image en entrée. La quantité de flou est contrôlée par {{SVGAttr("stdDeviation")}}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("in")}}
  • -
  • {{SVGAttr("stdDeviation")}}
  • -
  • {{SVGAttr("edgeMode")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

Exemple simple

- -

SVG

- -
<svg width="230" height="120"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink">
-
-  <filter id="blurMe">
-    <feGaussianBlur in="SourceGraphic" stdDeviation="5" />
-  </filter>
-
-  <circle cx="60"  cy="60" r="50" fill="green" />
-
-  <circle cx="170" cy="60" r="50" fill="green"
-          filter="url(#blurMe)" />
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple_simple",232,124)}}

- -

Exemple avec une ombre portée

- -

SVG

- -
<svg width="120" height="120"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink">
-
-  <filter id="dropShadow">
-    <feGaussianBlur in="SourceAlpha" stdDeviation="3" />
-    <feOffset dx="2" dy="4" />
-    <feMerge>
-        <feMergeNode />
-        <feMergeNode in="SourceGraphic" />
-    </feMerge>
-  </filter>
-
-  <circle cx="60"  cy="60" r="50" fill="green"
-          filter="url(#dropShadow)" />
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple_avec_une_ombre_portée",125,124)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feGaussianBlurElement', '<feGaussianBlur>')}}{{Spec2('Filters 1.0')}}Ajoute l'attribut {{SVGAttr("edgeMode")}}
{{SpecName('SVG1.1', 'filters.html#feGaussianBlurElement', '<feGaussianBlur>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fegaussianblur/index.md b/files/fr/web/svg/element/fegaussianblur/index.md new file mode 100644 index 0000000000..c2a9fdbe70 --- /dev/null +++ b/files/fr/web/svg/element/fegaussianblur/index.md @@ -0,0 +1,135 @@ +--- +title: +slug: Web/SVG/Element/feGaussianBlur +translation_of: Web/SVG/Element/feGaussianBlur +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feGaussianBlur> applique un effet de flou à l'image en entrée. La quantité de flou est contrôlée par {{SVGAttr("stdDeviation")}}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("in")}}
  • +
  • {{SVGAttr("stdDeviation")}}
  • +
  • {{SVGAttr("edgeMode")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

Exemple simple

+ +

SVG

+ +
<svg width="230" height="120"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+
+  <filter id="blurMe">
+    <feGaussianBlur in="SourceGraphic" stdDeviation="5" />
+  </filter>
+
+  <circle cx="60"  cy="60" r="50" fill="green" />
+
+  <circle cx="170" cy="60" r="50" fill="green"
+          filter="url(#blurMe)" />
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple_simple",232,124)}}

+ +

Exemple avec une ombre portée

+ +

SVG

+ +
<svg width="120" height="120"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+
+  <filter id="dropShadow">
+    <feGaussianBlur in="SourceAlpha" stdDeviation="3" />
+    <feOffset dx="2" dy="4" />
+    <feMerge>
+        <feMergeNode />
+        <feMergeNode in="SourceGraphic" />
+    </feMerge>
+  </filter>
+
+  <circle cx="60"  cy="60" r="50" fill="green"
+          filter="url(#dropShadow)" />
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple_avec_une_ombre_portée",125,124)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feGaussianBlurElement', '<feGaussianBlur>')}}{{Spec2('Filters 1.0')}}Ajoute l'attribut {{SVGAttr("edgeMode")}}
{{SpecName('SVG1.1', 'filters.html#feGaussianBlurElement', '<feGaussianBlur>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/feimage/index.html b/files/fr/web/svg/element/feimage/index.html deleted file mode 100644 index 2996a0c915..0000000000 --- a/files/fr/web/svg/element/feimage/index.html +++ /dev/null @@ -1,109 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feImage -tags: - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feImage ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feImage> extrait les données d'une image d'une source externe et retourne les pixels récupérés en sortie (autrement dit, si l'image récupérée est une image SVG, elle sortira comme raster)

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("preserveAspectRatio")}}
  • -
  • {{SVGAttr("xlink:href")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"
-    xmlns:xlink="http://www.w3.org/1999/xlink">
-  <defs>
-    <filter id="image">
-      <feImage xlink:href="/files/6457/mdn_logo_only_color.png"/>
-    </filter>
-  </defs>
-
-  <rect x="10%" y="10%" width="80%" height="80%"
-      style="filter:url(#image);"/>
-</svg>
- -

{{EmbedLiveSample("Exemple", 200, 200)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feImageElement", "<feImage>")}}{{Spec2("Filters 1.0")}}Ajoute l'attribut {{SVGAttr("href")}} et déprécie {{SVGAttr("xlink:href")}}. Ajoute l'attribut {{SVGAttr("crossorigin")}}.
{{SpecName("SVG1.1", "filters.html#feImageElement", "<feImage>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("animateTransform")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Les filtres
  • -
diff --git a/files/fr/web/svg/element/feimage/index.md b/files/fr/web/svg/element/feimage/index.md new file mode 100644 index 0000000000..2996a0c915 --- /dev/null +++ b/files/fr/web/svg/element/feimage/index.md @@ -0,0 +1,109 @@ +--- +title: +slug: Web/SVG/Element/feImage +tags: + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feImage +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feImage> extrait les données d'une image d'une source externe et retourne les pixels récupérés en sortie (autrement dit, si l'image récupérée est une image SVG, elle sortira comme raster)

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("preserveAspectRatio")}}
  • +
  • {{SVGAttr("xlink:href")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"
+    xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+    <filter id="image">
+      <feImage xlink:href="/files/6457/mdn_logo_only_color.png"/>
+    </filter>
+  </defs>
+
+  <rect x="10%" y="10%" width="80%" height="80%"
+      style="filter:url(#image);"/>
+</svg>
+ +

{{EmbedLiveSample("Exemple", 200, 200)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feImageElement", "<feImage>")}}{{Spec2("Filters 1.0")}}Ajoute l'attribut {{SVGAttr("href")}} et déprécie {{SVGAttr("xlink:href")}}. Ajoute l'attribut {{SVGAttr("crossorigin")}}.
{{SpecName("SVG1.1", "filters.html#feImageElement", "<feImage>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("animateTransform")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Les filtres
  • +
diff --git a/files/fr/web/svg/element/femerge/index.html b/files/fr/web/svg/element/femerge/index.html deleted file mode 100644 index d1c190aae8..0000000000 --- a/files/fr/web/svg/element/femerge/index.html +++ /dev/null @@ -1,111 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feMerge -tags: - - Element - - SVG Filter -translation_of: Web/SVG/Element/feMerge ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feMerge> permet d'empiler les résultats de différentes opérations de filtre les uns par dessus les autres. La liste des images à empiler est définit par une liste d'élément {{ SVGElement("feMergeNode") }} à l'intérieur de la balise. Pour y parvenir, stocker au préalable les résultats des filtres voulus dans un buffer temporaire grâce à l'attribut {{ SVGAttr("result") }}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Exemple

- -

SVG

- -
<svg width="200" height="200"
-  xmlns="http://www.w3.org/2000/svg">
-
-  <filter id="feOffset" x="-40" y="-20" width="100" height="200">
-    <feOffset in="SourceGraphic" dx="60" dy="60" />
-    <feGaussianBlur in="SourceGraphic" stdDeviation="5" result="blur2" />
-    <feMerge>
-      <feMergeNode in="blur2" />
-      <feMergeNode in="SourceGraphic" />
-    </feMerge>
-  </filter>
-
-  <rect x="40" y="40" width="100" height="100"
-    style="stroke: #000000; fill: green; filter: url(#feOffset);" />
-</svg>
-
- -

Résultat

- -

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

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -

Aucun

- -

Interface DOM

- -

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

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feMergeElement', '<feMerge>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feMergeElement', '<feMerge>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMergeNode")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/femerge/index.md b/files/fr/web/svg/element/femerge/index.md new file mode 100644 index 0000000000..d1c190aae8 --- /dev/null +++ b/files/fr/web/svg/element/femerge/index.md @@ -0,0 +1,111 @@ +--- +title: +slug: Web/SVG/Element/feMerge +tags: + - Element + - SVG Filter +translation_of: Web/SVG/Element/feMerge +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feMerge> permet d'empiler les résultats de différentes opérations de filtre les uns par dessus les autres. La liste des images à empiler est définit par une liste d'élément {{ SVGElement("feMergeNode") }} à l'intérieur de la balise. Pour y parvenir, stocker au préalable les résultats des filtres voulus dans un buffer temporaire grâce à l'attribut {{ SVGAttr("result") }}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Exemple

+ +

SVG

+ +
<svg width="200" height="200"
+  xmlns="http://www.w3.org/2000/svg">
+
+  <filter id="feOffset" x="-40" y="-20" width="100" height="200">
+    <feOffset in="SourceGraphic" dx="60" dy="60" />
+    <feGaussianBlur in="SourceGraphic" stdDeviation="5" result="blur2" />
+    <feMerge>
+      <feMergeNode in="blur2" />
+      <feMergeNode in="SourceGraphic" />
+    </feMerge>
+  </filter>
+
+  <rect x="40" y="40" width="100" height="100"
+    style="stroke: #000000; fill: green; filter: url(#feOffset);" />
+</svg>
+
+ +

Résultat

+ +

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

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +

Aucun

+ +

Interface DOM

+ +

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

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feMergeElement', '<feMerge>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feMergeElement', '<feMerge>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMergeNode")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/femergenode/index.html b/files/fr/web/svg/element/femergenode/index.html deleted file mode 100644 index b3ccd9ee5c..0000000000 --- a/files/fr/web/svg/element/femergenode/index.html +++ /dev/null @@ -1,98 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feMergeNode -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feMergeNode ---- -
{{SVGRef}}
- -

L'élément SVG feMergeNode se place à l'intérieur d'un élément {{ SVGElement("feMerge") }}. Il prend en entrée le résultat d'un filtre afin qu'il soit traité par son parent.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Exemple

- -
<svg width="200" height="200"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink">
-
-    <filter id="feOffset" x="-40" y="-20" width="100" height="200">
-        <feOffset in="SourceGraphic" dx="60" dy="60" />
-        <feGaussianBlur in="SourceGraphic" stdDeviation="5" result="blur2" />
-        <feMerge>
-            <feMergeNode in="blur2" />
-            <feMergeNode in="SourceGraphic" />
-        </feMerge>
-    </filter>
-
-    <rect x="40" y="40" width="100" height="100"
-       style="stroke: #000000; fill: green; filter: url(#feOffset);" />
-    <rect x="40" y="40" width="100" height="100"
-        style="stroke: #000000; fill: green;" />
-</svg>
-
- -

Résultat

- -

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

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{ SVGAttr("in") }}
  • -
- -

Interface DOM

- -

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

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#elementdef-femergenode', '<feMergeNode>')}}{{Spec2('Filters 1.0')}} 
{{SpecName('SVG1.1', 'filters.html#feMergeNodeElement', '<feMergeNode>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{ SVGElement("filter") }}
  • -
  • {{ SVGElement("animate") }}
  • -
  • {{ SVGElement("set") }}
  • -
  • {{ SVGElement("feMerge") }}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/femergenode/index.md b/files/fr/web/svg/element/femergenode/index.md new file mode 100644 index 0000000000..b3ccd9ee5c --- /dev/null +++ b/files/fr/web/svg/element/femergenode/index.md @@ -0,0 +1,98 @@ +--- +title: +slug: Web/SVG/Element/feMergeNode +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feMergeNode +--- +
{{SVGRef}}
+ +

L'élément SVG feMergeNode se place à l'intérieur d'un élément {{ SVGElement("feMerge") }}. Il prend en entrée le résultat d'un filtre afin qu'il soit traité par son parent.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Exemple

+ +
<svg width="200" height="200"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+
+    <filter id="feOffset" x="-40" y="-20" width="100" height="200">
+        <feOffset in="SourceGraphic" dx="60" dy="60" />
+        <feGaussianBlur in="SourceGraphic" stdDeviation="5" result="blur2" />
+        <feMerge>
+            <feMergeNode in="blur2" />
+            <feMergeNode in="SourceGraphic" />
+        </feMerge>
+    </filter>
+
+    <rect x="40" y="40" width="100" height="100"
+       style="stroke: #000000; fill: green; filter: url(#feOffset);" />
+    <rect x="40" y="40" width="100" height="100"
+        style="stroke: #000000; fill: green;" />
+</svg>
+
+ +

Résultat

+ +

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

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{ SVGAttr("in") }}
  • +
+ +

Interface DOM

+ +

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

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#elementdef-femergenode', '<feMergeNode>')}}{{Spec2('Filters 1.0')}} 
{{SpecName('SVG1.1', 'filters.html#feMergeNodeElement', '<feMergeNode>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{ SVGElement("filter") }}
  • +
  • {{ SVGElement("animate") }}
  • +
  • {{ SVGElement("set") }}
  • +
  • {{ SVGElement("feMerge") }}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/femorphology/index.html b/files/fr/web/svg/element/femorphology/index.html deleted file mode 100644 index 803449847d..0000000000 --- a/files/fr/web/svg/element/femorphology/index.html +++ /dev/null @@ -1,163 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feMorphology -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feMorphology ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feMorphology> est utilisée pour éroder ou dilater l'image en entrée. Cela permet d'appliquer des effets de mise en gras ou d'amincissement.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("in")}}
  • -
  • {{SVGAttr("operator")}}
  • -
  • {{SVGAttr("radius")}}
  • -
- -

Interface DOM

- -

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

- -

Exemples

- -

Sur du contenu SVG

- -

SVG

- -
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="180">
-  <filter id="erode">
-    <feMorphology operator="erode" radius="1"/>
-  </filter>
-  <filter id="dilate">
-    <feMorphology operator="dilate" radius="2"/>
-  </filter>
-  <text y="1em">Texte normal</text>
-  <text id="thin" y="2em">Texte mince</text>
-  <text id="thick" y="3em">Text gras</text>
-</svg>
-
- -

CSS

- -
text {
-  font-family: Arial, Helvetica, sans-serif;
-  font-size: 3em;
-}
-
-#thin {
-  filter: url(#erode);
-}
-
-#thick {
-  filter: url(#dilate);
-}
- -

{{EmbedLiveSample("Sur_du_contenu_SVG", 340, 180)}}

- -

Sur du contenu HTML

- -

SVG

- -
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0">
-  <filter id="erode">
-    <feMorphology operator="erode" radius="1"/>
-  </filter>
-  <filter id="dilate">
-    <feMorphology operator="dilate" radius="2"/>
-  </filter>
-</svg>
-
-<p>Texte normal</p>
-<p id="thin">Texte mince</p>
-<p id="thick">Text gras</p>
- -

CSS

- -
p {
-  margin: 0;
-  font-family: Arial, Helvetica, sans-serif;
-  font-size: 3em;
-}
-
-#thin {
-  filter: url(#erode);
-}
-
-#thick {
-  filter: url(#dilate);
-}
- -

{{EmbedLiveSample("Sur_du_contenu_HTML", 340, 180)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feMorphologyElement", "<feMorphology>")}}{{Spec2("Filters 1.0")}}Aucun changement
{{SpecName("SVG1.1", "filters.html#feMorphologyElement", "<feMorphology>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/femorphology/index.md b/files/fr/web/svg/element/femorphology/index.md new file mode 100644 index 0000000000..803449847d --- /dev/null +++ b/files/fr/web/svg/element/femorphology/index.md @@ -0,0 +1,163 @@ +--- +title: +slug: Web/SVG/Element/feMorphology +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feMorphology +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feMorphology> est utilisée pour éroder ou dilater l'image en entrée. Cela permet d'appliquer des effets de mise en gras ou d'amincissement.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("in")}}
  • +
  • {{SVGAttr("operator")}}
  • +
  • {{SVGAttr("radius")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemples

+ +

Sur du contenu SVG

+ +

SVG

+ +
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="180">
+  <filter id="erode">
+    <feMorphology operator="erode" radius="1"/>
+  </filter>
+  <filter id="dilate">
+    <feMorphology operator="dilate" radius="2"/>
+  </filter>
+  <text y="1em">Texte normal</text>
+  <text id="thin" y="2em">Texte mince</text>
+  <text id="thick" y="3em">Text gras</text>
+</svg>
+
+ +

CSS

+ +
text {
+  font-family: Arial, Helvetica, sans-serif;
+  font-size: 3em;
+}
+
+#thin {
+  filter: url(#erode);
+}
+
+#thick {
+  filter: url(#dilate);
+}
+ +

{{EmbedLiveSample("Sur_du_contenu_SVG", 340, 180)}}

+ +

Sur du contenu HTML

+ +

SVG

+ +
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0">
+  <filter id="erode">
+    <feMorphology operator="erode" radius="1"/>
+  </filter>
+  <filter id="dilate">
+    <feMorphology operator="dilate" radius="2"/>
+  </filter>
+</svg>
+
+<p>Texte normal</p>
+<p id="thin">Texte mince</p>
+<p id="thick">Text gras</p>
+ +

CSS

+ +
p {
+  margin: 0;
+  font-family: Arial, Helvetica, sans-serif;
+  font-size: 3em;
+}
+
+#thin {
+  filter: url(#erode);
+}
+
+#thick {
+  filter: url(#dilate);
+}
+ +

{{EmbedLiveSample("Sur_du_contenu_HTML", 340, 180)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feMorphologyElement", "<feMorphology>")}}{{Spec2("Filters 1.0")}}Aucun changement
{{SpecName("SVG1.1", "filters.html#feMorphologyElement", "<feMorphology>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/feoffset/index.html b/files/fr/web/svg/element/feoffset/index.html deleted file mode 100644 index f55c26f834..0000000000 --- a/files/fr/web/svg/element/feoffset/index.html +++ /dev/null @@ -1,110 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feOffset -tags: - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feOffset ---- -
{{SVGRef}}
- -

La primitive de filtre <feOffset> permet de décaler l'image qu'elle a en entrée selon les attributs {{SVGAttr("dx")}} et {{SVGAttr("dy")}}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("in")}}
  • -
  • {{SVGAttr("dx")}}
  • -
  • {{SVGAttr("dy")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

SVG

- -
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
-  <defs>
-    <filter id="offset" width="180" height="180">
-      <feOffset in="SourceGraphic" dx="60" dy="60" />
-    </filter>
-  </defs>
-
-  <rect x="0" y="0" width="100" height="100" stroke="black" fill="green"/>
-  <rect x="0" y="0" width="100" height="100" stroke="black" fill="green" filter="url(#offset)"/>
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 200, 200)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feOffsetElement', '<feOffset>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feOffsetElement', '<feOffset>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Effets de filtre
  • -
diff --git a/files/fr/web/svg/element/feoffset/index.md b/files/fr/web/svg/element/feoffset/index.md new file mode 100644 index 0000000000..f55c26f834 --- /dev/null +++ b/files/fr/web/svg/element/feoffset/index.md @@ -0,0 +1,110 @@ +--- +title: +slug: Web/SVG/Element/feOffset +tags: + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feOffset +--- +
{{SVGRef}}
+ +

La primitive de filtre <feOffset> permet de décaler l'image qu'elle a en entrée selon les attributs {{SVGAttr("dx")}} et {{SVGAttr("dy")}}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("in")}}
  • +
  • {{SVGAttr("dx")}}
  • +
  • {{SVGAttr("dy")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
+  <defs>
+    <filter id="offset" width="180" height="180">
+      <feOffset in="SourceGraphic" dx="60" dy="60" />
+    </filter>
+  </defs>
+
+  <rect x="0" y="0" width="100" height="100" stroke="black" fill="green"/>
+  <rect x="0" y="0" width="100" height="100" stroke="black" fill="green" filter="url(#offset)"/>
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 200, 200)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feOffsetElement', '<feOffset>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feOffsetElement', '<feOffset>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Effets de filtre
  • +
diff --git a/files/fr/web/svg/element/fepointlight/index.html b/files/fr/web/svg/element/fepointlight/index.html deleted file mode 100644 index ad36103039..0000000000 --- a/files/fr/web/svg/element/fepointlight/index.html +++ /dev/null @@ -1,103 +0,0 @@ ---- -title: -slug: Web/SVG/Element/fePointLight -tags: - - Element - - SVG - - SVG Filter - - SVG Light Source -translation_of: Web/SVG/Element/fePointLight ---- -
{{SVGRef}}
- -

La primitive de filtre <fePointLight> définit une source de lumière qui permet de créer un point lumineux. On la place dans une primitive de filtre d'éclairage: {{SVGElement("feDiffuseLighting")}} or {{SVGElement("feSpecularLighting")}}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("x")}}
  • -
  • {{SVGAttr("y")}}
  • -
  • {{SVGAttr("z")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

SVG

- -
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"
-    xmlns:xlink="http://www.w3.org/1999/xlink">
-  <defs>
-    <filter id="spotlight">
-      <feSpecularLighting result="spotlight" specularConstant="1.5"
-          specularExponent="80" lighting-color="#FFF">
-        <fePointLight x="50" y="50" z="220"/>
-      </feSpecularLighting>
-      <feComposite in="SourceGraphic" in2="spotlight" operator="arithmetic"
-          k1="0" k2="1" k3="1" k4="0"/>
-    </filter>
-  </defs>
-
-  <image xlink:href="/files/6457/mdn_logo_only_color.png" x="10%" y="10%"
-      width="80%" height="80%" style="filter:url(#spotlight);"/>
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 200, 200)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#fePointLightElement', '<fePointLight>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#fePointLightElement', '<fePointLight>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feDistantLight")}}
  • -
  • {{SVGElement("feSpotLight")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fepointlight/index.md b/files/fr/web/svg/element/fepointlight/index.md new file mode 100644 index 0000000000..ad36103039 --- /dev/null +++ b/files/fr/web/svg/element/fepointlight/index.md @@ -0,0 +1,103 @@ +--- +title: +slug: Web/SVG/Element/fePointLight +tags: + - Element + - SVG + - SVG Filter + - SVG Light Source +translation_of: Web/SVG/Element/fePointLight +--- +
{{SVGRef}}
+ +

La primitive de filtre <fePointLight> définit une source de lumière qui permet de créer un point lumineux. On la place dans une primitive de filtre d'éclairage: {{SVGElement("feDiffuseLighting")}} or {{SVGElement("feSpecularLighting")}}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("x")}}
  • +
  • {{SVGAttr("y")}}
  • +
  • {{SVGAttr("z")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"
+    xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+    <filter id="spotlight">
+      <feSpecularLighting result="spotlight" specularConstant="1.5"
+          specularExponent="80" lighting-color="#FFF">
+        <fePointLight x="50" y="50" z="220"/>
+      </feSpecularLighting>
+      <feComposite in="SourceGraphic" in2="spotlight" operator="arithmetic"
+          k1="0" k2="1" k3="1" k4="0"/>
+    </filter>
+  </defs>
+
+  <image xlink:href="/files/6457/mdn_logo_only_color.png" x="10%" y="10%"
+      width="80%" height="80%" style="filter:url(#spotlight);"/>
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 200, 200)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#fePointLightElement', '<fePointLight>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#fePointLightElement', '<fePointLight>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feDistantLight")}}
  • +
  • {{SVGElement("feSpotLight")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fespecularlighting/index.html b/files/fr/web/svg/element/fespecularlighting/index.html deleted file mode 100644 index 31b4e8ff78..0000000000 --- a/files/fr/web/svg/element/fespecularlighting/index.html +++ /dev/null @@ -1,117 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feSpecularLighting -tags: - - Element - - SVG - - SVG Filter - - SVG Light Source -translation_of: Web/SVG/Element/feSpecularLighting ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feSpecularLighting> éclaire une image en utilisant son canal alpha en tant que relief. L'image résultante est une image RGBA qui dépend de la couleur de la lumière, de sa position et du relief de l'image en entrée. Le calcul de l'éclairage se fait suivant le modèle d'illumination de Phong.

- -

La lumière crée par cette primitive de filtre peut être combinée avec une image de texture à l'aide de l'opérateur arithmetic de la primitive de filtre {{SVGElement("feComposite")}}. De multiples sources lumineuses peuvent être simulées en ajoutant plusieurs éléments à la texture.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("in")}}
  • -
  • {{SVGAttr("surfaceScale")}}
  • -
  • {{SVGAttr("specularConstant")}}
  • -
  • {{SVGAttr("specularExponent")}}
  • -
  • {{SVGAttr("kernelUnitLength")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -
<svg height="200" width="200" viewBox="0 0 220 220"
-    xmlns="http://www.w3.org/2000/svg">
-  <filter id = "filter">
-    <feSpecularLighting result="specOut"
-        specularExponent="20" lighting-color="#bbbbbb">
-      <fePointLight x="50" y="75" z="200"/>
-    </feSpecularLighting>
-    <feComposite in="SourceGraphic" in2="specOut"
-        operator="arithmetic" k1="0" k2="1" k3="1" k4="0"/>
-  </filter>
-  <circle cx="110" cy="110" r="100" style="filter:url(#filter)"/>
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 220, 220)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feSpecularLightingElement', '<feSpecularLighting>')}}{{Spec2('Filters 1.0')}}Suppression de la limitation sur l'attribut specularExponent.
{{SpecName('SVG1.1', 'filters.html#feSpecularLightingElement', '<feSpecularLighting>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feDistantLight")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("fePointLight")}}
  • -
  • {{SVGElement("feSpotLight")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fespecularlighting/index.md b/files/fr/web/svg/element/fespecularlighting/index.md new file mode 100644 index 0000000000..31b4e8ff78 --- /dev/null +++ b/files/fr/web/svg/element/fespecularlighting/index.md @@ -0,0 +1,117 @@ +--- +title: +slug: Web/SVG/Element/feSpecularLighting +tags: + - Element + - SVG + - SVG Filter + - SVG Light Source +translation_of: Web/SVG/Element/feSpecularLighting +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feSpecularLighting> éclaire une image en utilisant son canal alpha en tant que relief. L'image résultante est une image RGBA qui dépend de la couleur de la lumière, de sa position et du relief de l'image en entrée. Le calcul de l'éclairage se fait suivant le modèle d'illumination de Phong.

+ +

La lumière crée par cette primitive de filtre peut être combinée avec une image de texture à l'aide de l'opérateur arithmetic de la primitive de filtre {{SVGElement("feComposite")}}. De multiples sources lumineuses peuvent être simulées en ajoutant plusieurs éléments à la texture.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("in")}}
  • +
  • {{SVGAttr("surfaceScale")}}
  • +
  • {{SVGAttr("specularConstant")}}
  • +
  • {{SVGAttr("specularExponent")}}
  • +
  • {{SVGAttr("kernelUnitLength")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +
<svg height="200" width="200" viewBox="0 0 220 220"
+    xmlns="http://www.w3.org/2000/svg">
+  <filter id = "filter">
+    <feSpecularLighting result="specOut"
+        specularExponent="20" lighting-color="#bbbbbb">
+      <fePointLight x="50" y="75" z="200"/>
+    </feSpecularLighting>
+    <feComposite in="SourceGraphic" in2="specOut"
+        operator="arithmetic" k1="0" k2="1" k3="1" k4="0"/>
+  </filter>
+  <circle cx="110" cy="110" r="100" style="filter:url(#filter)"/>
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 220, 220)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feSpecularLightingElement', '<feSpecularLighting>')}}{{Spec2('Filters 1.0')}}Suppression de la limitation sur l'attribut specularExponent.
{{SpecName('SVG1.1', 'filters.html#feSpecularLightingElement', '<feSpecularLighting>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feDistantLight")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("fePointLight")}}
  • +
  • {{SVGElement("feSpotLight")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fespotlight/index.html b/files/fr/web/svg/element/fespotlight/index.html deleted file mode 100644 index a5447ec39d..0000000000 --- a/files/fr/web/svg/element/fespotlight/index.html +++ /dev/null @@ -1,108 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feSpotLight -tags: - - Element - - SVG - - SVG Filter - - SVG Light Source -translation_of: Web/SVG/Element/feSpotLight ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feSpotLight> définit une source de lumière qui permet de créer un feu de projecteur. On la place dans une primitive de filtre d'éclairage: {{SVGElement("feDiffuseLighting")}} ou {{SVGElement("feSpecularLighting")}}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("x")}}
  • -
  • {{SVGAttr("y")}}
  • -
  • {{SVGAttr("z")}}
  • -
  • {{SVGAttr("pointsAtX")}}
  • -
  • {{SVGAttr("pointsAtY")}}
  • -
  • {{SVGAttr("pointsAtZ")}}
  • -
  • {{SVGAttr("specularExponent")}}
  • -
  • {{SVGAttr("limitingConeAngle")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

SVG

- -
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"
-    xmlns:xlink="http://www.w3.org/1999/xlink">
-  <defs>
-    <filter id="spotlight">
-      <feSpecularLighting result="spotlight" specularConstant="1.5"
-          specularExponent="4" lighting-color="#FFF">
-        <feSpotLight x="600" y="600" z="400" limitingConeAngle="5.5" />
-      </feSpecularLighting>
-      <feComposite in="SourceGraphic" in2="spotlight" operator="out"
-          k1="0" k2="1" k3="1" k4="0"/>
-    </filter>
-  </defs>
-
-  <image xlink:href="/files/6457/mdn_logo_only_color.png" x="10%" y="10%"
-      width="80%" height="80%" style="filter:url(#spotlight);"/>
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 200, 200)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feSpotLightElement", "<feSpotLight>")}}{{Spec2("Filters 1.0")}}Aucun changement
{{SpecName("SVG1.1", "filters.html#feSpotLightElement", "<feSpotLight>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feDistantLight")}}
  • -
  • {{SVGElement("fePointLight")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/fespotlight/index.md b/files/fr/web/svg/element/fespotlight/index.md new file mode 100644 index 0000000000..a5447ec39d --- /dev/null +++ b/files/fr/web/svg/element/fespotlight/index.md @@ -0,0 +1,108 @@ +--- +title: +slug: Web/SVG/Element/feSpotLight +tags: + - Element + - SVG + - SVG Filter + - SVG Light Source +translation_of: Web/SVG/Element/feSpotLight +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feSpotLight> définit une source de lumière qui permet de créer un feu de projecteur. On la place dans une primitive de filtre d'éclairage: {{SVGElement("feDiffuseLighting")}} ou {{SVGElement("feSpecularLighting")}}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("x")}}
  • +
  • {{SVGAttr("y")}}
  • +
  • {{SVGAttr("z")}}
  • +
  • {{SVGAttr("pointsAtX")}}
  • +
  • {{SVGAttr("pointsAtY")}}
  • +
  • {{SVGAttr("pointsAtZ")}}
  • +
  • {{SVGAttr("specularExponent")}}
  • +
  • {{SVGAttr("limitingConeAngle")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"
+    xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+    <filter id="spotlight">
+      <feSpecularLighting result="spotlight" specularConstant="1.5"
+          specularExponent="4" lighting-color="#FFF">
+        <feSpotLight x="600" y="600" z="400" limitingConeAngle="5.5" />
+      </feSpecularLighting>
+      <feComposite in="SourceGraphic" in2="spotlight" operator="out"
+          k1="0" k2="1" k3="1" k4="0"/>
+    </filter>
+  </defs>
+
+  <image xlink:href="/files/6457/mdn_logo_only_color.png" x="10%" y="10%"
+      width="80%" height="80%" style="filter:url(#spotlight);"/>
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 200, 200)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#feSpotLightElement", "<feSpotLight>")}}{{Spec2("Filters 1.0")}}Aucun changement
{{SpecName("SVG1.1", "filters.html#feSpotLightElement", "<feSpotLight>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feDistantLight")}}
  • +
  • {{SVGElement("fePointLight")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/fetile/index.html b/files/fr/web/svg/element/fetile/index.html deleted file mode 100644 index f4acbdf1c9..0000000000 --- a/files/fr/web/svg/element/fetile/index.html +++ /dev/null @@ -1,113 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feTile -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feTile ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feTile> permet de remplir un rectangle cible avec un motif en mosaïque qui répète une image en entrée. L'effet est similaire à ce que l'on obtient avec {{SVGElement("pattern")}}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("in")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

SVG

- -
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"
-    xmlns:xlink="http://www.w3.org/1999/xlink">
-  <defs>
-    <filter id="tile" x="0" y="0" width="100%" height="100%">
-      <feTile in="SourceGraphic" x="50" y="50"
-          width="100" height="100" />
-      <feTile/>
-    </filter>
-  </defs>
-
-  <image xlink:href="/files/6457/mdn_logo_only_color.png"
-      x="10%" y="10%" width="80%" height="80%"
-      style="filter:url(#tile);"/>
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 200, 200)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feTileElement', '<feTile>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feTileElement', '<feTile>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • SVG tutorial: Filter effects
  • -
diff --git a/files/fr/web/svg/element/fetile/index.md b/files/fr/web/svg/element/fetile/index.md new file mode 100644 index 0000000000..f4acbdf1c9 --- /dev/null +++ b/files/fr/web/svg/element/fetile/index.md @@ -0,0 +1,113 @@ +--- +title: +slug: Web/SVG/Element/feTile +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feTile +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feTile> permet de remplir un rectangle cible avec un motif en mosaïque qui répète une image en entrée. L'effet est similaire à ce que l'on obtient avec {{SVGElement("pattern")}}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("in")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"
+    xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+    <filter id="tile" x="0" y="0" width="100%" height="100%">
+      <feTile in="SourceGraphic" x="50" y="50"
+          width="100" height="100" />
+      <feTile/>
+    </filter>
+  </defs>
+
+  <image xlink:href="/files/6457/mdn_logo_only_color.png"
+      x="10%" y="10%" width="80%" height="80%"
+      style="filter:url(#tile);"/>
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 200, 200)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feTileElement', '<feTile>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feTileElement', '<feTile>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • SVG tutorial: Filter effects
  • +
diff --git a/files/fr/web/svg/element/feturbulence/index.html b/files/fr/web/svg/element/feturbulence/index.html deleted file mode 100644 index 1a35532aeb..0000000000 --- a/files/fr/web/svg/element/feturbulence/index.html +++ /dev/null @@ -1,111 +0,0 @@ ---- -title: -slug: Web/SVG/Element/feTurbulence -tags: - - Element - - SVG - - SVG Filter -translation_of: Web/SVG/Element/feTurbulence ---- -
{{SVGRef}}
- -

La primitive de filtre SVG <feTurbulence> crée une image en utilisant la fonction de turbulence de Perlin. Cela permet de créer des textures artificielles comme des nuages, du marbre, etc.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("baseFrequency")}}
  • -
  • {{SVGAttr("numOctaves")}}
  • -
  • {{SVGAttr("seed")}}
  • -
  • {{SVGAttr("stitchTiles")}}
  • -
  • {{SVGAttr("type")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -
<svg width="200" height="200" viewBox="0 0 220 220"
-     xmlns="http://www.w3.org/2000/svg">
-  <filter id="displacementFilter">
-    <feTurbulence type="turbulence" baseFrequency="0.05"
-        numOctaves="2" result="turbulence"/>
-    <feDisplacementMap in2="turbulence" in="SourceGraphic"
-        scale="50" xChannelSelector="R" yChannelSelector="G"/>
-  </filter>
-
-  <circle cx="100" cy="100" r="100"
-      style="filter: url(#displacementFilter)"/>
-</svg>
- -

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

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feTurbulenceElement', '<feTurbulence>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feTurbulenceElement', '<feTurbulence>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/feturbulence/index.md b/files/fr/web/svg/element/feturbulence/index.md new file mode 100644 index 0000000000..1a35532aeb --- /dev/null +++ b/files/fr/web/svg/element/feturbulence/index.md @@ -0,0 +1,111 @@ +--- +title: +slug: Web/SVG/Element/feTurbulence +tags: + - Element + - SVG + - SVG Filter +translation_of: Web/SVG/Element/feTurbulence +--- +
{{SVGRef}}
+ +

La primitive de filtre SVG <feTurbulence> crée une image en utilisant la fonction de turbulence de Perlin. Cela permet de créer des textures artificielles comme des nuages, du marbre, etc.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("baseFrequency")}}
  • +
  • {{SVGAttr("numOctaves")}}
  • +
  • {{SVGAttr("seed")}}
  • +
  • {{SVGAttr("stitchTiles")}}
  • +
  • {{SVGAttr("type")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +
<svg width="200" height="200" viewBox="0 0 220 220"
+     xmlns="http://www.w3.org/2000/svg">
+  <filter id="displacementFilter">
+    <feTurbulence type="turbulence" baseFrequency="0.05"
+        numOctaves="2" result="turbulence"/>
+    <feDisplacementMap in2="turbulence" in="SourceGraphic"
+        scale="50" xChannelSelector="R" yChannelSelector="G"/>
+  </filter>
+
+  <circle cx="100" cy="100" r="100"
+      style="filter: url(#displacementFilter)"/>
+</svg>
+ +

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

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Filters 1.0', '#feTurbulenceElement', '<feTurbulence>')}}{{Spec2('Filters 1.0')}}Aucun changement
{{SpecName('SVG1.1', 'filters.html#feTurbulenceElement', '<feTurbulence>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/filter/index.html b/files/fr/web/svg/element/filter/index.html deleted file mode 100644 index d07d577f50..0000000000 --- a/files/fr/web/svg/element/filter/index.html +++ /dev/null @@ -1,118 +0,0 @@ ---- -title: -slug: Web/SVG/Element/filter -tags: - - Element - - SVG -translation_of: Web/SVG/Element/filter ---- -
{{SVGRef}}
- -

L'élément SVG <filter> sert de conteneur pour définir des opérations de filtre. Il n'est jamais affiché par lui-même, il est référencé en utilisant l'attribut {{SVGAttr("filter")}} sur un élément SVG ou via la propriété  {{Glossary("CSS")}} {{cssxref("filter")}}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("x")}}
  • -
  • {{SVGAttr("y")}}
  • -
  • {{SVGAttr("width")}}
  • -
  • {{SVGAttr("height")}}
  • -
  • {{SVGAttr("filterRes")}}
  • -
  • {{SVGAttr("filterUnits")}}
  • -
  • {{SVGAttr("primitiveUnits")}}
  • -
  • {{SVGAttr("xlink:href")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

SVG

- -
<svg width="230" height="120"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink">
-
- <filter id="blurMe">
-  <feGaussianBlur in="SourceGraphic" stdDeviation="5"/>
- </filter>
-
- <circle cx="60"  cy="60" r="50" fill="green" />
-
- <circle cx="170" cy="60" r="50" fill="green"
-          filter="url(#blurMe)" />
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Exemple",232,124,"/files/4227/feGaussianBlur.png")}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#FilterElement", "<filter>")}}{{Spec2("Filters 1.0")}} 
{{SpecName("SVG1.1", "filters.html#FilterElement", "<filter>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feDropShadow")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • Tutoriel SVG: Filtres
  • -
diff --git a/files/fr/web/svg/element/filter/index.md b/files/fr/web/svg/element/filter/index.md new file mode 100644 index 0000000000..d07d577f50 --- /dev/null +++ b/files/fr/web/svg/element/filter/index.md @@ -0,0 +1,118 @@ +--- +title: +slug: Web/SVG/Element/filter +tags: + - Element + - SVG +translation_of: Web/SVG/Element/filter +--- +
{{SVGRef}}
+ +

L'élément SVG <filter> sert de conteneur pour définir des opérations de filtre. Il n'est jamais affiché par lui-même, il est référencé en utilisant l'attribut {{SVGAttr("filter")}} sur un élément SVG ou via la propriété  {{Glossary("CSS")}} {{cssxref("filter")}}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("x")}}
  • +
  • {{SVGAttr("y")}}
  • +
  • {{SVGAttr("width")}}
  • +
  • {{SVGAttr("height")}}
  • +
  • {{SVGAttr("filterRes")}}
  • +
  • {{SVGAttr("filterUnits")}}
  • +
  • {{SVGAttr("primitiveUnits")}}
  • +
  • {{SVGAttr("xlink:href")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg width="230" height="120"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+
+ <filter id="blurMe">
+  <feGaussianBlur in="SourceGraphic" stdDeviation="5"/>
+ </filter>
+
+ <circle cx="60"  cy="60" r="50" fill="green" />
+
+ <circle cx="170" cy="60" r="50" fill="green"
+          filter="url(#blurMe)" />
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple",232,124,"/files/4227/feGaussianBlur.png")}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("Filters 1.0", "#FilterElement", "<filter>")}}{{Spec2("Filters 1.0")}} 
{{SpecName("SVG1.1", "filters.html#FilterElement", "<filter>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feDropShadow")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • Tutoriel SVG: Filtres
  • +
diff --git a/files/fr/web/svg/element/foreignobject/index.html b/files/fr/web/svg/element/foreignobject/index.html deleted file mode 100644 index 993f08a761..0000000000 --- a/files/fr/web/svg/element/foreignobject/index.html +++ /dev/null @@ -1,117 +0,0 @@ ---- -title: -slug: Web/SVG/Element/foreignObject -tags: - - Element - - Reference - - SVG -translation_of: Web/SVG/Element/foreignObject ---- -
{{SVGRef}}
- -

L'élément <foreignObject> permet d'inclure des éléments d'un espace de noms XML différent à l'intérieur du SVG. Dans le contexte d'un navigateur, il s'agit généralement d'inclure du XHTML/HTML.

- -

Exemple

- - - -
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
-  <style>
-    polygon { fill: black }
-
-    div {
-      color: white;
-      font:18px serif;
-      height: 100%;
-      overflow: auto;
-    }
-  </style>
-
-  <polygon points="5,5 195,10 185,185 10,195" />
-
-  <!-- Cas d'utilisation courant: inclure du texte HTML dans le SVG -->
-  <foreignObject x="20" y="20" width="160" height="160">
-    <!--
-      Dans le cas d'un SVG intégré dans du HTML, le namespace XHTML peut
-      être omis, mais il est obligatoire dans le contexte d'un document SVG
-    -->
-    <div xmlns="http://www.w3.org/1999/xhtml">
-      Lorem ipsum dolor sit amet, consectetur adipiscing elit.
-      Sed mollis mollis mi ut ultricies. Nullam magna ipsum,
-      porta vel dui convallis, rutrum imperdiet eros. Aliquam
-      erat volutpat.
-    </div>
-  </foreignObject>
-</svg>
- -

{{EmbedLiveSample('exemple', 150, '100%')}}

- -

Attributs

- -
-
{{SVGAttr("height")}}
-
Cet attribut détermine la hauteur du rectangle.
- Type de valeur: <length>|<percentage> ; Valeur par défaut: auto; Animation: oui
-
{{SVGAttr("width")}}
-
Cet attribut détermine la largeur du rectangle.
- Type de valeur: <length>|<percentage> ; Valeur par défaut: auto; Animation: oui
-
{{SVGAttr("x")}}
-
Cet attribut détermine la coordonnée x du rectangle.
- Type de valeur: <length>|<percentage> ; Valeur par défaut: 0; Animation: oui
-
{{SVGAttr("y")}}
-
Cet attribut détermine la coordonnée y du rectangle.
- Type de valeur: <length>|<percentage> ; Valeur par défaut: 0; Animation: oui
-
- -
-

Note: À partir de SVG2 x, y, width, et height sont des Propriétés Géometriques, ce qui signifie que ces attributs peuvent également être utilisés comme des propriétés CSS pour cet élément.

-
- -

Attributs globaux

- -
-
Attributs de base
-
Notamment: {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
-
Attributs de style
-
{{SVGAttr('class')}}, {{SVGAttr('style')}}
-
Attributs de traitement conditionnel
-
Notamment: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
-
Attributs d'événement
-
Attributs d'événements globaux, Attributs d'événement graphiques, Attributs d'événement du document, Attributs d'événement des éléments du document
-
Attributs de présentation
-
Notamment: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
-
Attributs Aria
-
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role
-
- -

Notes d'usage

- -

{{svginfo}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('SVG2', 'embedded.html#ForeignObjectElement', '<foreignObject>')}}{{Spec2('SVG2')}} 
{{SpecName('SVG1.1', 'extend.html#ForeignObjectElement', '<foreignObject>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

diff --git a/files/fr/web/svg/element/foreignobject/index.md b/files/fr/web/svg/element/foreignobject/index.md new file mode 100644 index 0000000000..993f08a761 --- /dev/null +++ b/files/fr/web/svg/element/foreignobject/index.md @@ -0,0 +1,117 @@ +--- +title: +slug: Web/SVG/Element/foreignObject +tags: + - Element + - Reference + - SVG +translation_of: Web/SVG/Element/foreignObject +--- +
{{SVGRef}}
+ +

L'élément <foreignObject> permet d'inclure des éléments d'un espace de noms XML différent à l'intérieur du SVG. Dans le contexte d'un navigateur, il s'agit généralement d'inclure du XHTML/HTML.

+ +

Exemple

+ + + +
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
+  <style>
+    polygon { fill: black }
+
+    div {
+      color: white;
+      font:18px serif;
+      height: 100%;
+      overflow: auto;
+    }
+  </style>
+
+  <polygon points="5,5 195,10 185,185 10,195" />
+
+  <!-- Cas d'utilisation courant: inclure du texte HTML dans le SVG -->
+  <foreignObject x="20" y="20" width="160" height="160">
+    <!--
+      Dans le cas d'un SVG intégré dans du HTML, le namespace XHTML peut
+      être omis, mais il est obligatoire dans le contexte d'un document SVG
+    -->
+    <div xmlns="http://www.w3.org/1999/xhtml">
+      Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+      Sed mollis mollis mi ut ultricies. Nullam magna ipsum,
+      porta vel dui convallis, rutrum imperdiet eros. Aliquam
+      erat volutpat.
+    </div>
+  </foreignObject>
+</svg>
+ +

{{EmbedLiveSample('exemple', 150, '100%')}}

+ +

Attributs

+ +
+
{{SVGAttr("height")}}
+
Cet attribut détermine la hauteur du rectangle.
+ Type de valeur: <length>|<percentage> ; Valeur par défaut: auto; Animation: oui
+
{{SVGAttr("width")}}
+
Cet attribut détermine la largeur du rectangle.
+ Type de valeur: <length>|<percentage> ; Valeur par défaut: auto; Animation: oui
+
{{SVGAttr("x")}}
+
Cet attribut détermine la coordonnée x du rectangle.
+ Type de valeur: <length>|<percentage> ; Valeur par défaut: 0; Animation: oui
+
{{SVGAttr("y")}}
+
Cet attribut détermine la coordonnée y du rectangle.
+ Type de valeur: <length>|<percentage> ; Valeur par défaut: 0; Animation: oui
+
+ +
+

Note: À partir de SVG2 x, y, width, et height sont des Propriétés Géometriques, ce qui signifie que ces attributs peuvent également être utilisés comme des propriétés CSS pour cet élément.

+
+ +

Attributs globaux

+ +
+
Attributs de base
+
Notamment: {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
+
Attributs de style
+
{{SVGAttr('class')}}, {{SVGAttr('style')}}
+
Attributs de traitement conditionnel
+
Notamment: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
+
Attributs d'événement
+
Attributs d'événements globaux, Attributs d'événement graphiques, Attributs d'événement du document, Attributs d'événement des éléments du document
+
Attributs de présentation
+
Notamment: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
+
Attributs Aria
+
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role
+
+ +

Notes d'usage

+ +

{{svginfo}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('SVG2', 'embedded.html#ForeignObjectElement', '<foreignObject>')}}{{Spec2('SVG2')}} 
{{SpecName('SVG1.1', 'extend.html#ForeignObjectElement', '<foreignObject>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

diff --git a/files/fr/web/svg/element/g/index.html b/files/fr/web/svg/element/g/index.html deleted file mode 100644 index 87392d44f3..0000000000 --- a/files/fr/web/svg/element/g/index.html +++ /dev/null @@ -1,83 +0,0 @@ ---- -title: -slug: Web/SVG/Element/g -tags: - - Element - - Reference - - SVG - - SVG Conteneur -translation_of: Web/SVG/Element/g ---- -
{{SVGRef}}
- -

L'élément g est un conteneur utilisé pour grouper des objets.

- -

Les transformations appliquées à l'élément g sont reportées à tous ses éléments enfants. Les attributs appliqués sont également reportés aux éléments enfants. De plus, il peut être utilisé pour définir des objets complexes qui seront référencés ultérieurement avec l'élément {{SVGElement("use")}}.

- -

Exemple

- - - - -
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
-  <!-- Les enfants de g héritent de ses attributs de présentation -->
-  <g fill="white" stroke="green" stroke-width="5">
-    <circle cx="40" cy="40" r="25" />
-    <circle cx="60" cy="60" r="25" />
-  </g>
-</svg>
- -

{{EmbedLiveSample('exemple', 100, '100%')}}

- -

Attributs

- -

Cet élément n'a que des attributs globaux

- -

Attributs globaux

- -
-
Attributs de base
-
Notamment: {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
-
Attributs de style
-
{{SVGAttr('class')}}, {{SVGAttr('style')}}
-
Attributs de traitement conditionnel
-
Notamment: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
-
Attributs d'événement
-
Attributs d'événement globaux, Attributs d'événement graphiques
-
Attributs de présentation
-
Notamment: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
-
Attributs Aria
-
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role
-
- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("SVG2", "struct.html#GElement", "<g>")}}{{Spec2("SVG2")}} 
{{SpecName("SVG1.1", "struct.html#Groups", "<g>")}}{{Spec2("SVG1.1")}}Initial definition
- -

Compatibilité des navigateurs

- -

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

diff --git a/files/fr/web/svg/element/g/index.md b/files/fr/web/svg/element/g/index.md new file mode 100644 index 0000000000..87392d44f3 --- /dev/null +++ b/files/fr/web/svg/element/g/index.md @@ -0,0 +1,83 @@ +--- +title: +slug: Web/SVG/Element/g +tags: + - Element + - Reference + - SVG + - SVG Conteneur +translation_of: Web/SVG/Element/g +--- +
{{SVGRef}}
+ +

L'élément g est un conteneur utilisé pour grouper des objets.

+ +

Les transformations appliquées à l'élément g sont reportées à tous ses éléments enfants. Les attributs appliqués sont également reportés aux éléments enfants. De plus, il peut être utilisé pour définir des objets complexes qui seront référencés ultérieurement avec l'élément {{SVGElement("use")}}.

+ +

Exemple

+ + + + +
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
+  <!-- Les enfants de g héritent de ses attributs de présentation -->
+  <g fill="white" stroke="green" stroke-width="5">
+    <circle cx="40" cy="40" r="25" />
+    <circle cx="60" cy="60" r="25" />
+  </g>
+</svg>
+ +

{{EmbedLiveSample('exemple', 100, '100%')}}

+ +

Attributs

+ +

Cet élément n'a que des attributs globaux

+ +

Attributs globaux

+ +
+
Attributs de base
+
Notamment: {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
+
Attributs de style
+
{{SVGAttr('class')}}, {{SVGAttr('style')}}
+
Attributs de traitement conditionnel
+
Notamment: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
+
Attributs d'événement
+
Attributs d'événement globaux, Attributs d'événement graphiques
+
Attributs de présentation
+
Notamment: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
+
Attributs Aria
+
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role
+
+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("SVG2", "struct.html#GElement", "<g>")}}{{Spec2("SVG2")}} 
{{SpecName("SVG1.1", "struct.html#Groups", "<g>")}}{{Spec2("SVG1.1")}}Initial definition
+ +

Compatibilité des navigateurs

+ +

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

diff --git a/files/fr/web/svg/element/hkern/index.html b/files/fr/web/svg/element/hkern/index.html deleted file mode 100644 index 72fed53d97..0000000000 --- a/files/fr/web/svg/element/hkern/index.html +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: -slug: Web/SVG/Element/hkern -tags: - - Element - - Police SVG - - Reference - - SVG -translation_of: Web/SVG/Element/hkern ---- -
{{SVGRef}}
- -

La distance horizontale entre deux glyphes peut être ajustée minutieusement avec l'élément hkern. Ce proccessus est appelé Crénage.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Exemple

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{ SVGAttr("u1") }}
  • -
  • {{ SVGAttr("g1") }}
  • -
  • {{ SVGAttr("u2") }}
  • -
  • {{ SVGAttr("g2") }}
  • -
  • {{ SVGAttr("k") }}
  • -
- -

Interface DOM

- -

Cet élément implémente l'interface SVGHKernElement.

- -

Voir également

- - diff --git a/files/fr/web/svg/element/hkern/index.md b/files/fr/web/svg/element/hkern/index.md new file mode 100644 index 0000000000..72fed53d97 --- /dev/null +++ b/files/fr/web/svg/element/hkern/index.md @@ -0,0 +1,50 @@ +--- +title: +slug: Web/SVG/Element/hkern +tags: + - Element + - Police SVG + - Reference + - SVG +translation_of: Web/SVG/Element/hkern +--- +
{{SVGRef}}
+ +

La distance horizontale entre deux glyphes peut être ajustée minutieusement avec l'élément hkern. Ce proccessus est appelé Crénage.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Exemple

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{ SVGAttr("u1") }}
  • +
  • {{ SVGAttr("g1") }}
  • +
  • {{ SVGAttr("u2") }}
  • +
  • {{ SVGAttr("g2") }}
  • +
  • {{ SVGAttr("k") }}
  • +
+ +

Interface DOM

+ +

Cet élément implémente l'interface SVGHKernElement.

+ +

Voir également

+ + diff --git a/files/fr/web/svg/element/image/index.html b/files/fr/web/svg/element/image/index.html deleted file mode 100644 index 24e230b8a4..0000000000 --- a/files/fr/web/svg/element/image/index.html +++ /dev/null @@ -1,60 +0,0 @@ ---- -title: -slug: Web/SVG/Element/image -translation_of: Web/SVG/Element/image ---- -
{{SVGRef}}
- -

L'élément Image SVG (<image>) permet d'inclure une image matricielle dans un document SVG.

- -

Contexte d'Utilisation

- -

{{svginfo}}

- -

Exemple

- -

Rendu basique d'une image PNG dans un objet SVG :

- -
<svg width="100%" height="100%" viewBox="0 0 100 100"
-     xmlns="http://www.w3.org/2000/svg"
-     xmlns:xlink="http://www.w3.org/1999/xlink">
-  <image xlink:href="/files/2917/fxlogo.png" x="0" y="0" height="100" width="100" />
-</svg>
-
- -

{{EmbedLiveSample("Exemple",250,260)}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{ SVGAttr("x") }}
  • -
  • {{ SVGAttr("y") }}
  • -
  • {{ SVGAttr("width") }}
  • -
  • {{ SVGAttr("height") }}
  • -
  • {{ SVGAttr("xlink:href") }}
  • -
  • {{ SVGAttr("preserveAspectRatio") }}
  • -
- -

Interface DOM

- -

Cet élément implémente l'interface SVGImageElement.

- -

Compatibilité des navigateurs

- -

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

diff --git a/files/fr/web/svg/element/image/index.md b/files/fr/web/svg/element/image/index.md new file mode 100644 index 0000000000..24e230b8a4 --- /dev/null +++ b/files/fr/web/svg/element/image/index.md @@ -0,0 +1,60 @@ +--- +title: +slug: Web/SVG/Element/image +translation_of: Web/SVG/Element/image +--- +
{{SVGRef}}
+ +

L'élément Image SVG (<image>) permet d'inclure une image matricielle dans un document SVG.

+ +

Contexte d'Utilisation

+ +

{{svginfo}}

+ +

Exemple

+ +

Rendu basique d'une image PNG dans un objet SVG :

+ +
<svg width="100%" height="100%" viewBox="0 0 100 100"
+     xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink">
+  <image xlink:href="/files/2917/fxlogo.png" x="0" y="0" height="100" width="100" />
+</svg>
+
+ +

{{EmbedLiveSample("Exemple",250,260)}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{ SVGAttr("x") }}
  • +
  • {{ SVGAttr("y") }}
  • +
  • {{ SVGAttr("width") }}
  • +
  • {{ SVGAttr("height") }}
  • +
  • {{ SVGAttr("xlink:href") }}
  • +
  • {{ SVGAttr("preserveAspectRatio") }}
  • +
+ +

Interface DOM

+ +

Cet élément implémente l'interface SVGImageElement.

+ +

Compatibilité des navigateurs

+ +

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

diff --git a/files/fr/web/svg/element/index.html b/files/fr/web/svg/element/index.html deleted file mode 100644 index 1b01700206..0000000000 --- a/files/fr/web/svg/element/index.html +++ /dev/null @@ -1,291 +0,0 @@ ---- -title: Element -slug: Web/SVG/Element -tags: - - Conception adaptative - - Elements - - Graphiques vectoriels - - Références SVG - - SVG - - dessin - - 'l10n:priority' -translation_of: Web/SVG/Element ---- -

Les dessins et les images SVG sont créés à l'aide d'un large éventail d'éléments dédiés à la construction, au dessin et à la mise en page d'images vectorielles et de diagrammes. Vous trouverez ici la documentation de référence pour chacun des éléments SVG.

- -

Éléments SVG de A à Z

- -

A

- -
    -
  • {{SVGElement("a")}}
  • -
  • {{SVGElement("animate")}}
  • -
  • {{SVGElement("animateMotion")}}
  • -
  • {{SVGElement("animateTransform")}}
  • -
- -

C

- -
    -
  • {{SVGElement("circle")}}
  • -
  • {{SVGElement("clipPath")}}
  • -
  • {{SVGElement("color-profile")}}
  • -
- -

D

- -
    -
  • {{SVGElement("defs")}}
  • -
  • {{SVGElement("desc")}}
  • -
  • {{SVGElement("discard")}}
  • -
- -

E

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

F

- -
    -
  • {{SVGElement("feBlend")}}
  • -
  • {{SVGElement("feColorMatrix")}}
  • -
  • {{SVGElement("feComponentTransfer")}}
  • -
  • {{SVGElement("feComposite")}}
  • -
  • {{SVGElement("feConvolveMatrix")}}
  • -
  • {{SVGElement("feDiffuseLighting")}}
  • -
  • {{SVGElement("feDisplacementMap")}}
  • -
  • {{SVGElement("feDistantLight")}}
  • -
  • {{SVGElement("feDropShadow")}}
  • -
  • {{SVGElement("feFlood")}}
  • -
  • {{SVGElement("feFuncA")}}
  • -
  • {{SVGElement("feFuncB")}}
  • -
  • {{SVGElement("feFuncG")}}
  • -
  • {{SVGElement("feFuncR")}}
  • -
  • {{SVGElement("feGaussianBlur")}}
  • -
  • {{SVGElement("feImage")}}
  • -
  • {{SVGElement("feMerge")}}
  • -
  • {{SVGElement("feMergeNode")}}
  • -
  • {{SVGElement("feMorphology")}}
  • -
  • {{SVGElement("feOffset")}}
  • -
  • {{SVGElement("fePointLight")}}
  • -
  • {{SVGElement("feSpecularLighting")}}
  • -
  • {{SVGElement("feSpotLight")}}
  • -
  • {{SVGElement("feTile")}}
  • -
  • {{SVGElement("feTurbulence")}}
  • -
  • {{SVGElement("filter")}}
  • -
  • {{SVGElement("foreignObject")}}
  • -
- -

G

- -
    -
  • {{SVGElement("g")}}
  • -
- -

H

- -
    -
  • {{SVGElement("hatch")}}
  • -
  • {{SVGElement("hatchpath")}}
  • -
- -

I

- -
    -
  • {{SVGElement("image")}}
  • -
- -

L

- -
    -
  • {{SVGElement("line")}}
  • -
  • {{SVGElement("linearGradient")}}
  • -
- -

M

- -
    -
  • {{SVGElement("marker")}}
  • -
  • {{SVGElement("mask")}}
  • -
  • {{SVGElement("mesh")}}
  • -
  • {{SVGElement("meshgradient")}}
  • -
  • {{SVGElement("meshpatch")}}
  • -
  • {{SVGElement("meshrow")}}
  • -
  • {{SVGElement("metadata")}}
  • -
  • {{SVGElement("mpath")}}
  • -
- -

P

- -
    -
  • {{SVGElement("path")}}
  • -
  • {{SVGElement("pattern")}}
  • -
  • {{SVGElement("polygon")}}
  • -
  • {{SVGElement("polyline")}}
  • -
- -

R

- -
    -
  • {{SVGElement("radialGradient")}}
  • -
  • {{SVGElement("rect")}}
  • -
- -

S

- -
    -
  • {{SVGElement("script")}}
  • -
  • {{SVGElement("set")}}
  • -
  • {{SVGElement("solidcolor")}}
  • -
  • {{SVGElement("stop")}}
  • -
  • {{SVGElement("style")}}
  • -
  • {{SVGElement("svg")}}
  • -
  • {{SVGElement("switch")}}
  • -
  • {{SVGElement("symbol")}}
  • -
- -

T

- -
    -
  • {{SVGElement("text")}}
  • -
  • {{SVGElement("textPath")}}
  • -
  • {{SVGElement("title")}}
  • -
  • {{SVGElement("tspan")}}
  • -
- -

U

- -
    -
  • {{SVGElement("unknown")}}
  • -
  • {{SVGElement("use")}}
  • -
- -

V

- -
    -
  • {{SVGElement("view")}}
  • -
- -

Les éléments SVG par catégories

- -

Éléments d'animation

- -

{{SVGElement("animate")}}, {{SVGElement("animateColor")}}, {{SVGElement("animateMotion")}}, {{SVGElement("animateTransform")}}, {{SVGElement("discard")}}, {{SVGElement("mpath")}}, {{SVGElement("set")}}

- -

Formes simples

- -

{{ SVGElement("circle") }}, {{ SVGElement("ellipse") }}, {{ SVGElement("line") }}, {{SVGElement("polygon") }}, {{ SVGElement("polyline") }}, {{ SVGElement("rect") }}

- -

Éléments conteneurs

- -

{{SVGElement("a")}}, {{SVGElement("defs")}}, {{SVGElement("g")}}, {{SVGElement("marker")}}, {{SVGElement("mask")}}, {{SVGElement("missing-glyph")}}, {{SVGElement("pattern")}}, {{SVGElement("svg")}}, {{SVGElement("switch")}}, {{SVGElement("symbol")}}, {{SVGElement("unknown")}}

- -

Éléments descriptifs

- -

{{SVGElement("desc") }}, {{ SVGElement("metadata") }}, {{ SVGElement("title") }}

- -

Éléments primitives de filtre

- -

{{SVGElement("feBlend")}}, {{SVGElement("feColorMatrix")}}, {{SVGElement("feComponentTransfer")}}, {{SVGElement("feComposite")}}, {{SVGElement("feConvolveMatrix")}}, {{SVGElement("feDiffuseLighting")}}, {{SVGElement("feDisplacementMap")}}, {{SVGElement("feDropShadow")}}, {{SVGElement("feFlood")}},{{SVGElement("feFuncA")}}, {{SVGElement("feFuncB")}}, {{SVGElement("feFuncG")}}, {{SVGElement("feFuncR")}},{{SVGElement("feGaussianBlur")}}, {{SVGElement("feImage")}}, {{SVGElement("feMerge")}}, {{SVGElement("feMergeNode")}}, {{SVGElement("feMorphology")}}, {{SVGElement("feOffset")}}, {{SVGElement("feSpecularLighting")}}, {{SVGElement("feTile")}}, {{SVGElement("feTurbulence")}}

- -

Éléments pour polices de caractères

- -

{{SVGElement("font")}}, {{SVGElement("font-face")}}, {{SVGElement("font-face-format")}}, {{SVGElement("font-face-name")}}, {{SVGElement("font-face-src")}}, {{SVGElement("font-face-uri")}}, {{SVGElement("hkern")}}, {{SVGElement("vkern")}}

- -

Éléments de dégradés

- -

{{SVGElement("linearGradient")}}, {{SVGElement("meshgradient")}}, {{SVGElement("radialGradient")}}, {{SVGElement("stop")}}

- -

Éléments graphiques

- -

{{SVGElement("circle")}}, {{SVGElement("ellipse")}}, {{SVGElement("image")}}, {{SVGElement("line")}}, {{SVGElement("mesh")}}, {{SVGElement("path")}}, {{SVGElement("polygon")}}, {{SVGElement("polyline")}}, {{SVGElement("rect")}}, {{SVGElement("text")}}, {{SVGElement("use")}}

- -

Éléments de référencement graphique

- -

{{SVGElement("mesh")}}, {{SVGElement("use")}}

- -

Éléments de source de lumière

- -

{{ SVGElement("feDistantLight") }}, {{ SVGElement("fePointLight") }}, {{ SVGElement("feSpotLight") }}

- -

Éléments sans‑rendu

- -

{{SVGElement("clipPath")}}, {{SVGElement("defs")}}, {{SVGElement("hatch")}}, {{SVGElement("linearGradient")}}, {{SVGElement("marker")}}, {{SVGElement("mask")}}, {{SVGElement("meshgradient")}}, {{SVGElement("metadata")}}, {{SVGElement("pattern")}}, {{SVGElement("radialGradient")}}, {{SVGElement("script")}}, {{SVGElement("style")}}, {{SVGElement("symbol")}}, {{SVGElement("title")}}

- -

Éléments de service pour peinture

- -

{{SVGElement("hatch")}}, {{SVGElement("linearGradient")}}, {{SVGElement("meshgradient")}}, {{SVGElement("pattern")}}, {{SVGElement("radialGradient")}}, {{SVGElement("solidcolor")}}

- -

Éléments avec rendu

- -

{{SVGElement("a")}}, {{SVGElement("circle")}}, {{SVGElement("ellipse")}}, {{SVGElement("foreignObject")}}, {{SVGElement("g")}}, {{SVGElement("image")}}, {{SVGElement("line")}}, {{SVGElement("mesh")}}, {{SVGElement("path")}}, {{SVGElement("polygon")}}, {{SVGElement("polyline")}}, {{SVGElement("rect")}}, {{SVGElement("svg")}}, {{SVGElement("switch")}}, {{SVGElement("symbol")}}, {{SVGElement("text")}}, {{SVGElement("textPath")}}, {{SVGElement("tspan")}}, {{SVGElement("unknown")}}, {{SVGElement("use")}}

- -

Éléments de formes

- -

{{SVGElement("circle")}}, {{SVGElement("ellipse")}}, {{SVGElement("line")}}, {{SVGElement("mesh")}}, {{SVGElement("path")}}, {{SVGElement("polygon")}}, {{SVGElement("polyline")}}, {{SVGElement("rect")}}

- -

Éléments structurels

- -

{{ SVGElement("defs") }}, {{ SVGElement("g") }}, {{ SVGElement("svg") }}, {{SVGElement("symbol") }}, {{ SVGElement("use") }}

- -

Éléments de contenu textuel

- -

{{SVGElement("altGlyph")}}, {{SVGElement("altGlyphDef")}}, {{SVGElement("altGlyphItem")}}, {{SVGElement("glyph")}}, {{SVGElement("glyphRef")}}, {{SVGElement("textPath")}}, {{SVGElement("text")}}, {{SVGElement("tref")}}, {{SVGElement("tspan")}}

- -

Éléments de contenu textuel enfant

- -

{{ SVGElement("altGlyph") }}, {{ SVGElement("textPath") }}, {{ SVGElement("tref") }}, {{SVGElement("tspan") }}

- -

Éléments non catégorisés

- -

{{SVGElement("clipPath")}}, {{SVGElement("color-profile")}}, {{SVGElement("cursor")}}, {{SVGElement("filter")}}, {{SVGElement("foreignObject")}}, {{SVGElement("hatchpath")}}, {{SVGElement("meshpatch")}}, {{SVGElement("meshrow")}}, {{SVGElement("script")}}, {{SVGElement("style")}}, {{SVGElement("view")}}

- -

Élements obsolètes et dépréciés

- -
-

Attention : Les éléments ci-dessous sont dépréciés et ne doivent pas être utilisés. Vous ne devez absolument pas les utiliser dans des nouveux projets, et vous devez dans la mesure du possible les remplacer dans les vieux projets. Ils sont listés là uniquemnt à titre informatif.

-
- -

A

- -

{{SVGElement("altGlyph")}}, {{SVGElement("altGlyphDef")}}, {{SVGElement("altGlyphItem")}}, {{SVGElement("animateColor")}}

- -

C

- -

{{SVGElement("cursor")}}

- -

F

- -

{{SVGElement("font")}}, {{SVGElement("font-face")}}, {{SVGElement("font-face-format")}}, {{SVGElement("font-face-name")}}, {{SVGElement("font-face-src")}}, {{SVGElement("font-face-uri")}}

- -

G

- -

{{SVGElement("glyph")}}, {{SVGElement("glyphRef")}}

- -

H

- -

{{SVGElement("hkern")}}

- -

M

- -

{{SVGElement("missing-glyph")}}

- -

T

- -

{{SVGElement("tref")}}

- -

V

- -

{{SVGElement("vkern")}}

- -

Voir aussi

- - - -

{{SVGRef}}

diff --git a/files/fr/web/svg/element/index.md b/files/fr/web/svg/element/index.md new file mode 100644 index 0000000000..1b01700206 --- /dev/null +++ b/files/fr/web/svg/element/index.md @@ -0,0 +1,291 @@ +--- +title: Element +slug: Web/SVG/Element +tags: + - Conception adaptative + - Elements + - Graphiques vectoriels + - Références SVG + - SVG + - dessin + - 'l10n:priority' +translation_of: Web/SVG/Element +--- +

Les dessins et les images SVG sont créés à l'aide d'un large éventail d'éléments dédiés à la construction, au dessin et à la mise en page d'images vectorielles et de diagrammes. Vous trouverez ici la documentation de référence pour chacun des éléments SVG.

+ +

Éléments SVG de A à Z

+ +

A

+ +
    +
  • {{SVGElement("a")}}
  • +
  • {{SVGElement("animate")}}
  • +
  • {{SVGElement("animateMotion")}}
  • +
  • {{SVGElement("animateTransform")}}
  • +
+ +

C

+ +
    +
  • {{SVGElement("circle")}}
  • +
  • {{SVGElement("clipPath")}}
  • +
  • {{SVGElement("color-profile")}}
  • +
+ +

D

+ +
    +
  • {{SVGElement("defs")}}
  • +
  • {{SVGElement("desc")}}
  • +
  • {{SVGElement("discard")}}
  • +
+ +

E

+ +
    +
  • {{SVGElement("ellipse")}}
  • +
+ +

F

+ +
    +
  • {{SVGElement("feBlend")}}
  • +
  • {{SVGElement("feColorMatrix")}}
  • +
  • {{SVGElement("feComponentTransfer")}}
  • +
  • {{SVGElement("feComposite")}}
  • +
  • {{SVGElement("feConvolveMatrix")}}
  • +
  • {{SVGElement("feDiffuseLighting")}}
  • +
  • {{SVGElement("feDisplacementMap")}}
  • +
  • {{SVGElement("feDistantLight")}}
  • +
  • {{SVGElement("feDropShadow")}}
  • +
  • {{SVGElement("feFlood")}}
  • +
  • {{SVGElement("feFuncA")}}
  • +
  • {{SVGElement("feFuncB")}}
  • +
  • {{SVGElement("feFuncG")}}
  • +
  • {{SVGElement("feFuncR")}}
  • +
  • {{SVGElement("feGaussianBlur")}}
  • +
  • {{SVGElement("feImage")}}
  • +
  • {{SVGElement("feMerge")}}
  • +
  • {{SVGElement("feMergeNode")}}
  • +
  • {{SVGElement("feMorphology")}}
  • +
  • {{SVGElement("feOffset")}}
  • +
  • {{SVGElement("fePointLight")}}
  • +
  • {{SVGElement("feSpecularLighting")}}
  • +
  • {{SVGElement("feSpotLight")}}
  • +
  • {{SVGElement("feTile")}}
  • +
  • {{SVGElement("feTurbulence")}}
  • +
  • {{SVGElement("filter")}}
  • +
  • {{SVGElement("foreignObject")}}
  • +
+ +

G

+ +
    +
  • {{SVGElement("g")}}
  • +
+ +

H

+ +
    +
  • {{SVGElement("hatch")}}
  • +
  • {{SVGElement("hatchpath")}}
  • +
+ +

I

+ +
    +
  • {{SVGElement("image")}}
  • +
+ +

L

+ +
    +
  • {{SVGElement("line")}}
  • +
  • {{SVGElement("linearGradient")}}
  • +
+ +

M

+ +
    +
  • {{SVGElement("marker")}}
  • +
  • {{SVGElement("mask")}}
  • +
  • {{SVGElement("mesh")}}
  • +
  • {{SVGElement("meshgradient")}}
  • +
  • {{SVGElement("meshpatch")}}
  • +
  • {{SVGElement("meshrow")}}
  • +
  • {{SVGElement("metadata")}}
  • +
  • {{SVGElement("mpath")}}
  • +
+ +

P

+ +
    +
  • {{SVGElement("path")}}
  • +
  • {{SVGElement("pattern")}}
  • +
  • {{SVGElement("polygon")}}
  • +
  • {{SVGElement("polyline")}}
  • +
+ +

R

+ +
    +
  • {{SVGElement("radialGradient")}}
  • +
  • {{SVGElement("rect")}}
  • +
+ +

S

+ +
    +
  • {{SVGElement("script")}}
  • +
  • {{SVGElement("set")}}
  • +
  • {{SVGElement("solidcolor")}}
  • +
  • {{SVGElement("stop")}}
  • +
  • {{SVGElement("style")}}
  • +
  • {{SVGElement("svg")}}
  • +
  • {{SVGElement("switch")}}
  • +
  • {{SVGElement("symbol")}}
  • +
+ +

T

+ +
    +
  • {{SVGElement("text")}}
  • +
  • {{SVGElement("textPath")}}
  • +
  • {{SVGElement("title")}}
  • +
  • {{SVGElement("tspan")}}
  • +
+ +

U

+ +
    +
  • {{SVGElement("unknown")}}
  • +
  • {{SVGElement("use")}}
  • +
+ +

V

+ +
    +
  • {{SVGElement("view")}}
  • +
+ +

Les éléments SVG par catégories

+ +

Éléments d'animation

+ +

{{SVGElement("animate")}}, {{SVGElement("animateColor")}}, {{SVGElement("animateMotion")}}, {{SVGElement("animateTransform")}}, {{SVGElement("discard")}}, {{SVGElement("mpath")}}, {{SVGElement("set")}}

+ +

Formes simples

+ +

{{ SVGElement("circle") }}, {{ SVGElement("ellipse") }}, {{ SVGElement("line") }}, {{SVGElement("polygon") }}, {{ SVGElement("polyline") }}, {{ SVGElement("rect") }}

+ +

Éléments conteneurs

+ +

{{SVGElement("a")}}, {{SVGElement("defs")}}, {{SVGElement("g")}}, {{SVGElement("marker")}}, {{SVGElement("mask")}}, {{SVGElement("missing-glyph")}}, {{SVGElement("pattern")}}, {{SVGElement("svg")}}, {{SVGElement("switch")}}, {{SVGElement("symbol")}}, {{SVGElement("unknown")}}

+ +

Éléments descriptifs

+ +

{{SVGElement("desc") }}, {{ SVGElement("metadata") }}, {{ SVGElement("title") }}

+ +

Éléments primitives de filtre

+ +

{{SVGElement("feBlend")}}, {{SVGElement("feColorMatrix")}}, {{SVGElement("feComponentTransfer")}}, {{SVGElement("feComposite")}}, {{SVGElement("feConvolveMatrix")}}, {{SVGElement("feDiffuseLighting")}}, {{SVGElement("feDisplacementMap")}}, {{SVGElement("feDropShadow")}}, {{SVGElement("feFlood")}},{{SVGElement("feFuncA")}}, {{SVGElement("feFuncB")}}, {{SVGElement("feFuncG")}}, {{SVGElement("feFuncR")}},{{SVGElement("feGaussianBlur")}}, {{SVGElement("feImage")}}, {{SVGElement("feMerge")}}, {{SVGElement("feMergeNode")}}, {{SVGElement("feMorphology")}}, {{SVGElement("feOffset")}}, {{SVGElement("feSpecularLighting")}}, {{SVGElement("feTile")}}, {{SVGElement("feTurbulence")}}

+ +

Éléments pour polices de caractères

+ +

{{SVGElement("font")}}, {{SVGElement("font-face")}}, {{SVGElement("font-face-format")}}, {{SVGElement("font-face-name")}}, {{SVGElement("font-face-src")}}, {{SVGElement("font-face-uri")}}, {{SVGElement("hkern")}}, {{SVGElement("vkern")}}

+ +

Éléments de dégradés

+ +

{{SVGElement("linearGradient")}}, {{SVGElement("meshgradient")}}, {{SVGElement("radialGradient")}}, {{SVGElement("stop")}}

+ +

Éléments graphiques

+ +

{{SVGElement("circle")}}, {{SVGElement("ellipse")}}, {{SVGElement("image")}}, {{SVGElement("line")}}, {{SVGElement("mesh")}}, {{SVGElement("path")}}, {{SVGElement("polygon")}}, {{SVGElement("polyline")}}, {{SVGElement("rect")}}, {{SVGElement("text")}}, {{SVGElement("use")}}

+ +

Éléments de référencement graphique

+ +

{{SVGElement("mesh")}}, {{SVGElement("use")}}

+ +

Éléments de source de lumière

+ +

{{ SVGElement("feDistantLight") }}, {{ SVGElement("fePointLight") }}, {{ SVGElement("feSpotLight") }}

+ +

Éléments sans‑rendu

+ +

{{SVGElement("clipPath")}}, {{SVGElement("defs")}}, {{SVGElement("hatch")}}, {{SVGElement("linearGradient")}}, {{SVGElement("marker")}}, {{SVGElement("mask")}}, {{SVGElement("meshgradient")}}, {{SVGElement("metadata")}}, {{SVGElement("pattern")}}, {{SVGElement("radialGradient")}}, {{SVGElement("script")}}, {{SVGElement("style")}}, {{SVGElement("symbol")}}, {{SVGElement("title")}}

+ +

Éléments de service pour peinture

+ +

{{SVGElement("hatch")}}, {{SVGElement("linearGradient")}}, {{SVGElement("meshgradient")}}, {{SVGElement("pattern")}}, {{SVGElement("radialGradient")}}, {{SVGElement("solidcolor")}}

+ +

Éléments avec rendu

+ +

{{SVGElement("a")}}, {{SVGElement("circle")}}, {{SVGElement("ellipse")}}, {{SVGElement("foreignObject")}}, {{SVGElement("g")}}, {{SVGElement("image")}}, {{SVGElement("line")}}, {{SVGElement("mesh")}}, {{SVGElement("path")}}, {{SVGElement("polygon")}}, {{SVGElement("polyline")}}, {{SVGElement("rect")}}, {{SVGElement("svg")}}, {{SVGElement("switch")}}, {{SVGElement("symbol")}}, {{SVGElement("text")}}, {{SVGElement("textPath")}}, {{SVGElement("tspan")}}, {{SVGElement("unknown")}}, {{SVGElement("use")}}

+ +

Éléments de formes

+ +

{{SVGElement("circle")}}, {{SVGElement("ellipse")}}, {{SVGElement("line")}}, {{SVGElement("mesh")}}, {{SVGElement("path")}}, {{SVGElement("polygon")}}, {{SVGElement("polyline")}}, {{SVGElement("rect")}}

+ +

Éléments structurels

+ +

{{ SVGElement("defs") }}, {{ SVGElement("g") }}, {{ SVGElement("svg") }}, {{SVGElement("symbol") }}, {{ SVGElement("use") }}

+ +

Éléments de contenu textuel

+ +

{{SVGElement("altGlyph")}}, {{SVGElement("altGlyphDef")}}, {{SVGElement("altGlyphItem")}}, {{SVGElement("glyph")}}, {{SVGElement("glyphRef")}}, {{SVGElement("textPath")}}, {{SVGElement("text")}}, {{SVGElement("tref")}}, {{SVGElement("tspan")}}

+ +

Éléments de contenu textuel enfant

+ +

{{ SVGElement("altGlyph") }}, {{ SVGElement("textPath") }}, {{ SVGElement("tref") }}, {{SVGElement("tspan") }}

+ +

Éléments non catégorisés

+ +

{{SVGElement("clipPath")}}, {{SVGElement("color-profile")}}, {{SVGElement("cursor")}}, {{SVGElement("filter")}}, {{SVGElement("foreignObject")}}, {{SVGElement("hatchpath")}}, {{SVGElement("meshpatch")}}, {{SVGElement("meshrow")}}, {{SVGElement("script")}}, {{SVGElement("style")}}, {{SVGElement("view")}}

+ +

Élements obsolètes et dépréciés

+ +
+

Attention : Les éléments ci-dessous sont dépréciés et ne doivent pas être utilisés. Vous ne devez absolument pas les utiliser dans des nouveux projets, et vous devez dans la mesure du possible les remplacer dans les vieux projets. Ils sont listés là uniquemnt à titre informatif.

+
+ +

A

+ +

{{SVGElement("altGlyph")}}, {{SVGElement("altGlyphDef")}}, {{SVGElement("altGlyphItem")}}, {{SVGElement("animateColor")}}

+ +

C

+ +

{{SVGElement("cursor")}}

+ +

F

+ +

{{SVGElement("font")}}, {{SVGElement("font-face")}}, {{SVGElement("font-face-format")}}, {{SVGElement("font-face-name")}}, {{SVGElement("font-face-src")}}, {{SVGElement("font-face-uri")}}

+ +

G

+ +

{{SVGElement("glyph")}}, {{SVGElement("glyphRef")}}

+ +

H

+ +

{{SVGElement("hkern")}}

+ +

M

+ +

{{SVGElement("missing-glyph")}}

+ +

T

+ +

{{SVGElement("tref")}}

+ +

V

+ +

{{SVGElement("vkern")}}

+ +

Voir aussi

+ + + +

{{SVGRef}}

diff --git a/files/fr/web/svg/element/line/index.html b/files/fr/web/svg/element/line/index.html deleted file mode 100644 index d5adf5895e..0000000000 --- a/files/fr/web/svg/element/line/index.html +++ /dev/null @@ -1,71 +0,0 @@ ---- -title: -slug: Web/SVG/Element/line -tags: - - Element - - Graphisme - - Reference - - Référence(2) - - SVG - - Élément(2) -translation_of: Web/SVG/Element/line ---- -
{{SVGRef}}
- -

L'élément line est un élément de la catégorie des formes simples SVG, utilisé pour créer une ligne connectant deux points.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Exemple

- - - -
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
-  <line x1="0" y1="80" x2="100" y2="20" stroke="black" />
-
-  <!-- Si on n'indique pas stroke, la ligne de couleur
-       ne sera pas visible -->
-</svg>
- -

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

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{ SVGAttr("x1") }}
  • -
  • {{ SVGAttr("x2") }}
  • -
  • {{ SVGAttr("y1") }}
  • -
  • {{ SVGAttr("y2") }}
  • -
- -

Interface DOM

- -

Cet élément implémente l'interface SVGLineElement.

- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{ SVGElement("polygon") }} ;
  • -
  • {{ SVGElement("path") }}.
  • -
diff --git a/files/fr/web/svg/element/line/index.md b/files/fr/web/svg/element/line/index.md new file mode 100644 index 0000000000..d5adf5895e --- /dev/null +++ b/files/fr/web/svg/element/line/index.md @@ -0,0 +1,71 @@ +--- +title: +slug: Web/SVG/Element/line +tags: + - Element + - Graphisme + - Reference + - Référence(2) + - SVG + - Élément(2) +translation_of: Web/SVG/Element/line +--- +
{{SVGRef}}
+ +

L'élément line est un élément de la catégorie des formes simples SVG, utilisé pour créer une ligne connectant deux points.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Exemple

+ + + +
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
+  <line x1="0" y1="80" x2="100" y2="20" stroke="black" />
+
+  <!-- Si on n'indique pas stroke, la ligne de couleur
+       ne sera pas visible -->
+</svg>
+ +

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

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{ SVGAttr("x1") }}
  • +
  • {{ SVGAttr("x2") }}
  • +
  • {{ SVGAttr("y1") }}
  • +
  • {{ SVGAttr("y2") }}
  • +
+ +

Interface DOM

+ +

Cet élément implémente l'interface SVGLineElement.

+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{ SVGElement("polygon") }} ;
  • +
  • {{ SVGElement("path") }}.
  • +
diff --git a/files/fr/web/svg/element/lineargradient/index.html b/files/fr/web/svg/element/lineargradient/index.html deleted file mode 100644 index 8dfa75792d..0000000000 --- a/files/fr/web/svg/element/lineargradient/index.html +++ /dev/null @@ -1,98 +0,0 @@ ---- -title: -slug: Web/SVG/Element/linearGradient -tags: - - Element - - Reference - - SVG - - SVG Gradient -translation_of: Web/SVG/Element/linearGradient ---- -
{{SVGRef}}
- -

L'élément <linearGradient> permet de définir des dégradés linéaires, qui pourront être utilisés comme remplissage ou contour des éléments SVG.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("gradientUnits")}}
  • -
  • {{SVGAttr("gradientTransform")}}
  • -
  • {{SVGAttr("x1")}}
  • -
  • {{SVGAttr("y1")}}
  • -
  • {{SVGAttr("x2")}}
  • -
  • {{SVGAttr("y2")}}
  • -
  • {{SVGAttr("spreadMethod")}}
  • -
  • {{SVGAttr("xlink:href")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -
<svg width="120" height="120" xmlns="http://www.w3.org/2000/svg">
-    <defs>
-        <linearGradient id="MyGradient">
-            <stop offset="5%"  stop-color="green"/>
-            <stop offset="95%" stop-color="gold"/>
-        </linearGradient>
-    </defs>
-
-    <rect fill="url(#MyGradient)"
-          x="10" y="10" width="100" height="100"/>
-</svg>
- -

{{EmbedLiveSample("Exemple", 120, 120)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('SVG2', 'pservers.html#LinearGradientElement', '<linearGradient>')}}{{Spec2('SVG2')}} 
{{SpecName('SVG1.1', 'pservers.html#LinearGradients', '<linearGradient>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("radialGradient")}}
  • -
  • {{SVGElement("stop")}}
  • -
diff --git a/files/fr/web/svg/element/lineargradient/index.md b/files/fr/web/svg/element/lineargradient/index.md new file mode 100644 index 0000000000..8dfa75792d --- /dev/null +++ b/files/fr/web/svg/element/lineargradient/index.md @@ -0,0 +1,98 @@ +--- +title: +slug: Web/SVG/Element/linearGradient +tags: + - Element + - Reference + - SVG + - SVG Gradient +translation_of: Web/SVG/Element/linearGradient +--- +
{{SVGRef}}
+ +

L'élément <linearGradient> permet de définir des dégradés linéaires, qui pourront être utilisés comme remplissage ou contour des éléments SVG.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("gradientUnits")}}
  • +
  • {{SVGAttr("gradientTransform")}}
  • +
  • {{SVGAttr("x1")}}
  • +
  • {{SVGAttr("y1")}}
  • +
  • {{SVGAttr("x2")}}
  • +
  • {{SVGAttr("y2")}}
  • +
  • {{SVGAttr("spreadMethod")}}
  • +
  • {{SVGAttr("xlink:href")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +
<svg width="120" height="120" xmlns="http://www.w3.org/2000/svg">
+    <defs>
+        <linearGradient id="MyGradient">
+            <stop offset="5%"  stop-color="green"/>
+            <stop offset="95%" stop-color="gold"/>
+        </linearGradient>
+    </defs>
+
+    <rect fill="url(#MyGradient)"
+          x="10" y="10" width="100" height="100"/>
+</svg>
+ +

{{EmbedLiveSample("Exemple", 120, 120)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('SVG2', 'pservers.html#LinearGradientElement', '<linearGradient>')}}{{Spec2('SVG2')}} 
{{SpecName('SVG1.1', 'pservers.html#LinearGradients', '<linearGradient>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("radialGradient")}}
  • +
  • {{SVGElement("stop")}}
  • +
diff --git a/files/fr/web/svg/element/marker/index.html b/files/fr/web/svg/element/marker/index.html deleted file mode 100644 index 6392f684b3..0000000000 --- a/files/fr/web/svg/element/marker/index.html +++ /dev/null @@ -1,131 +0,0 @@ ---- -title: -slug: Web/SVG/Element/marker -tags: - - SVG - - SVG Element -translation_of: Web/SVG/Element/marker ---- -
{{SVGRef}}
- -

L'élément <marker> définit un élément graphique qui pourra être utilisé pour dessiner des pointes de flèches ou des polymarqueurs sur un élément {{SVGElement("path")}}, {{SVGElement("line")}}, {{SVGElement("polyline")}} ou {{SVGElement("polygon")}}.

- -

Les marqueurs sont attachés aux formes à l'aide des propriétés {{SVGAttr("marker-start")}}, {{SVGAttr("marker-mid")}}, et {{SVGAttr("marker-end")}}.

- -

Exemple

- - - -
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
-  <defs>
-    <!-- Définit une pointe de flèche -->
-    <marker id="arrow" viewBox="0 0 10 10" refX="5" refY="5"
-        markerWidth="6" markerHeight="6"
-        orient="auto-start-reverse">
-      <path d="M 0 0 L 10 5 L 0 10 z" />
-    </marker>
-
-    <!-- Définit un simple point -->
-    <marker id="dot" viewBox="0 0 10 10" refX="5" refY="5"
-        markerWidth="5" markerHeight="5">
-      <circle cx="5" cy="5" r="5" fill="red" />
-    </marker>
-  </defs>
-
-  <!-- Dessine les axes des coordonnées avec des pointes de flèche à chaque bout -->
-  <polyline points="10,10 10,90 90,90" fill="none" stroke="black"
-   marker-start="url(#arrow)" marker-end="url(#arrow)"  />
-
-  <!-- Dessine une ligne avec un simple point entre chaque segment -->
-  <polyline points="15,80 29,50 43,60 57,30 71,40 85,15" fill="none" stroke="grey"
-   marker-start="url(#dot)" marker-mid="url(#dot)"  marker-end="url(#dot)" />
-</svg>
- -

{{EmbedLiveSample('exemple', 200, 200)}}

- -

Attributs

- -
-
{{SVGAttr("markerHeight")}}
-
Définit la hauteur du viewport du marqueur.
- Valeur: <length> ; Valeur par défaut: 3; Animation: oui
-
{{SVGAttr("markerUnits")}}
-
Définit le système de coordnnées pour les attributs markerWidth, markerHeight et le contenu du <marker>.
- ValeuruserSpaceOnUse|strokeWidth ; Valeur par défaut: strokeWidth; Animation: oui
-
{{SVGAttr("markerWidth")}}
-
Définit la largeur du viewport du marqueur.
- Valeur: <length> ; Valeur par défaut: 3; Animation: oui
-
{{SVGAttr("orient")}}
-
Définit l'orientation du marqueur relativement à la forme à laquelle il est attaché.
- Valeur: auto|auto-start-reverse|<angle> ; Valeur par défaut: 0; Animation: oui
-
{{SVGAttr("preserveAspectRatio")}}
-
Définit comment le fragment svg doit être déformé s'il est incorporé dans un conteneur avec un rapport hauteur:largeur différent de celui du marqueur.
- Valeur: (none| xMinYMin| xMidYMin| xMaxYMin| xMinYMid| xMidYMid| xMaxYMid| xMinYMax| xMidYMax| xMaxYMax) (meet|slice)? ; Valeur par défaut: xMidYMid meet; Animation: oui
-
{{SVGAttr("refX")}}
-
Définit la coordonnées x du point de référence du marqueur.
- Valeur: left|center|right|<coordinate> ; Valeur par défaut: 0; Animation: oui
-
{{SVGAttr("refY")}}
-
Définit la coordonnées y du point de référence du marqueur.
- Valeur: top|center|bottom|<coordinate> ; Valeur par défaut: 0; Animation: oui
-
{{SVGAttr("viewBox")}}
-
Définit la limite de la zone de dessin pour le fragment SVG.
- Valeur: <list-of-numbers> ; Valeur par défaut: none; Animation: oui
-
- -

Attributs globaux

- -
-
Attributs de base
-
Notamment: {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
-
Attributs de style
-
{{SVGAttr('class')}}, {{SVGAttr('style')}}
-
Attributs de traitement conditionnel
-
Notamment: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
-
Attributs de présentation
-
Notamment: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
-
Attributs ARIA
-
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role
-
- -

Notes d'usage

- -

{{svginfo}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Sp"cificationStatutCommentaire
{{SpecName("SVG Markers", "#MarkerElement", "<marker>")}}{{Spec2("SVG Markers")}} 
{{SpecName("SVG2", "painting.html#MarkerElement", "<marker>")}}{{Spec2("SVG2")}} 
{{SpecName("SVG1.1", "painting.html#MarkerElement", "<marker>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • Propriétés liées aux marqueurs: {{SVGAttr("marker-start")}}, {{SVGAttr("marker-mid")}}, et {{SVGAttr("marker-end")}}
  • -
diff --git a/files/fr/web/svg/element/marker/index.md b/files/fr/web/svg/element/marker/index.md new file mode 100644 index 0000000000..6392f684b3 --- /dev/null +++ b/files/fr/web/svg/element/marker/index.md @@ -0,0 +1,131 @@ +--- +title: +slug: Web/SVG/Element/marker +tags: + - SVG + - SVG Element +translation_of: Web/SVG/Element/marker +--- +
{{SVGRef}}
+ +

L'élément <marker> définit un élément graphique qui pourra être utilisé pour dessiner des pointes de flèches ou des polymarqueurs sur un élément {{SVGElement("path")}}, {{SVGElement("line")}}, {{SVGElement("polyline")}} ou {{SVGElement("polygon")}}.

+ +

Les marqueurs sont attachés aux formes à l'aide des propriétés {{SVGAttr("marker-start")}}, {{SVGAttr("marker-mid")}}, et {{SVGAttr("marker-end")}}.

+ +

Exemple

+ + + +
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
+  <defs>
+    <!-- Définit une pointe de flèche -->
+    <marker id="arrow" viewBox="0 0 10 10" refX="5" refY="5"
+        markerWidth="6" markerHeight="6"
+        orient="auto-start-reverse">
+      <path d="M 0 0 L 10 5 L 0 10 z" />
+    </marker>
+
+    <!-- Définit un simple point -->
+    <marker id="dot" viewBox="0 0 10 10" refX="5" refY="5"
+        markerWidth="5" markerHeight="5">
+      <circle cx="5" cy="5" r="5" fill="red" />
+    </marker>
+  </defs>
+
+  <!-- Dessine les axes des coordonnées avec des pointes de flèche à chaque bout -->
+  <polyline points="10,10 10,90 90,90" fill="none" stroke="black"
+   marker-start="url(#arrow)" marker-end="url(#arrow)"  />
+
+  <!-- Dessine une ligne avec un simple point entre chaque segment -->
+  <polyline points="15,80 29,50 43,60 57,30 71,40 85,15" fill="none" stroke="grey"
+   marker-start="url(#dot)" marker-mid="url(#dot)"  marker-end="url(#dot)" />
+</svg>
+ +

{{EmbedLiveSample('exemple', 200, 200)}}

+ +

Attributs

+ +
+
{{SVGAttr("markerHeight")}}
+
Définit la hauteur du viewport du marqueur.
+ Valeur: <length> ; Valeur par défaut: 3; Animation: oui
+
{{SVGAttr("markerUnits")}}
+
Définit le système de coordnnées pour les attributs markerWidth, markerHeight et le contenu du <marker>.
+ ValeuruserSpaceOnUse|strokeWidth ; Valeur par défaut: strokeWidth; Animation: oui
+
{{SVGAttr("markerWidth")}}
+
Définit la largeur du viewport du marqueur.
+ Valeur: <length> ; Valeur par défaut: 3; Animation: oui
+
{{SVGAttr("orient")}}
+
Définit l'orientation du marqueur relativement à la forme à laquelle il est attaché.
+ Valeur: auto|auto-start-reverse|<angle> ; Valeur par défaut: 0; Animation: oui
+
{{SVGAttr("preserveAspectRatio")}}
+
Définit comment le fragment svg doit être déformé s'il est incorporé dans un conteneur avec un rapport hauteur:largeur différent de celui du marqueur.
+ Valeur: (none| xMinYMin| xMidYMin| xMaxYMin| xMinYMid| xMidYMid| xMaxYMid| xMinYMax| xMidYMax| xMaxYMax) (meet|slice)? ; Valeur par défaut: xMidYMid meet; Animation: oui
+
{{SVGAttr("refX")}}
+
Définit la coordonnées x du point de référence du marqueur.
+ Valeur: left|center|right|<coordinate> ; Valeur par défaut: 0; Animation: oui
+
{{SVGAttr("refY")}}
+
Définit la coordonnées y du point de référence du marqueur.
+ Valeur: top|center|bottom|<coordinate> ; Valeur par défaut: 0; Animation: oui
+
{{SVGAttr("viewBox")}}
+
Définit la limite de la zone de dessin pour le fragment SVG.
+ Valeur: <list-of-numbers> ; Valeur par défaut: none; Animation: oui
+
+ +

Attributs globaux

+ +
+
Attributs de base
+
Notamment: {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
+
Attributs de style
+
{{SVGAttr('class')}}, {{SVGAttr('style')}}
+
Attributs de traitement conditionnel
+
Notamment: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
+
Attributs de présentation
+
Notamment: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
+
Attributs ARIA
+
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role
+
+ +

Notes d'usage

+ +

{{svginfo}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Sp"cificationStatutCommentaire
{{SpecName("SVG Markers", "#MarkerElement", "<marker>")}}{{Spec2("SVG Markers")}} 
{{SpecName("SVG2", "painting.html#MarkerElement", "<marker>")}}{{Spec2("SVG2")}} 
{{SpecName("SVG1.1", "painting.html#MarkerElement", "<marker>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • Propriétés liées aux marqueurs: {{SVGAttr("marker-start")}}, {{SVGAttr("marker-mid")}}, et {{SVGAttr("marker-end")}}
  • +
diff --git a/files/fr/web/svg/element/mask/index.html b/files/fr/web/svg/element/mask/index.html deleted file mode 100644 index 20f0088b0d..0000000000 --- a/files/fr/web/svg/element/mask/index.html +++ /dev/null @@ -1,112 +0,0 @@ ---- -title: -slug: Web/SVG/Element/mask -tags: - - Element - - Masque - - NeedsCompatTable - - SVG - - SVG Container -translation_of: Web/SVG/Element/mask ---- -
{{SVGRef}}
- -

L'élément <mask> définit un masque alpha. Ce masque peut par la suite être appliqué sur une forme en utilisant la propriété {{SVGAttr("mask")}}.

- -

Le masque permet de rendre des zones de l'élément sur lequel est appliqué (semi-)transparentes. On peut par exemple créer un effet de fondu en utilisant un dégradé, ce que le détourage ({{SVGElement('clipPath')}}) ne permet pas.

- -

Exemple

- - - -
<svg viewBox="-10 -10 120 120">
-  <mask id="myMask">
-    <!-- Tous les pixels blancs sont visibles -->
-    <rect x="0" y="0" width="100" height="100" fill="white" />
-
-    <!-- Tous les pixels noirs sont invisibles -->
-    <path d="M10,35 A20,20,0,0,1,50,35 A20,20,0,0,1,90,35 Q90,65,50,95 Q10,65,10,35 Z" fill="black" />
-  </mask>
-
-  <polygon points="-10,110 110,110 110,-10" fill="orange" />
-
-  <!-- Avec ce masque, on "perfore" un trou en forme de coeur à l'intérieur du cercle -->
-  <circle cx="50" cy="50" r="50" mask="url(#myMask)" />
-</svg>
- -

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

- -

Attributs

- -
-
{{SVGAttr("height")}}
-
Définit la hauteur du masque.
- Valeur: <length> ; Valeur par défaut: 120%; Animation: oui
-
{{SVGAttr("maskContentUnits")}}
-
Définit le système de coordonnées pour le contenu du <mask>.
- Valeur: userSpaceOnUse|objectBoundingBox ; Valeur par défaut: userSpaceOnUse; Animation: oui
-
{{SVGAttr("maskUnits")}}
-
Définit le système de coordonnées pour les attributs {{SVGAttr("x")}}, {{SVGAttr("y")}}, {{SVGAttr("width")}} et {{SVGAttr("height")}} du <mask>.
- Valeur: userSpaceOnUse|objectBoundingBox ; Valeur par défaut: objectBoundingBox; Animation: oui
-
{{SVGAttr("x")}}
-
Définit la coordonnée de l'axe x du coin supérieur gauche du masque.
- Valeur: <coordinate> ; Valeur par défaut: -10%; Animation: oui
-
{{SVGAttr("y")}}
-
Définit la coordonnée de l'axe y du coin supérieur gauche du masque.
- Valeur: <coordinate> ; Valeur par défaut: -10%; Animation: oui
-
{{SVGAttr("width")}}
-
Définit la largeur du masque.
- Valeur: <length> ; Valeur par défaut: 120%; Animation: oui
-
- -

Attributs globaux

- -
-
Attributs de base
-
Notamment: {{SVGAttr('id')}}
-
Attributs de style
-
{{SVGAttr('class')}}, {{SVGAttr('style')}}
-
Attributs de traitement conditionnel
-
Notamment: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
-
Attributs de présentation
-
Notamment: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
-
- -

Notes d'usage

- -

{{svginfo}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('CSS Masks', '#MaskElement', '<mask>')}}{{Spec2('CSS Masks')}} 
{{SpecName('SVG1.1', 'masking.html#Masking', '<mask>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • Élément de détourage: {{SVGElement("clipPath")}}
  • -
  • Propriétés CSS de masque: {{cssxref("mask")}}, {{cssxref("mask-image")}},{{cssxref("mask-mode")}}, {{cssxref("mask-repeat")}}, {{cssxref("mask-position")}}, {{cssxref("mask-clip")}}, {{cssxref("mask-origin")}}, {{cssxref("mask-composite")}}, {{cssxref("mask-size")}}, {{cssxref("pointer-events")}}
  • -
diff --git a/files/fr/web/svg/element/mask/index.md b/files/fr/web/svg/element/mask/index.md new file mode 100644 index 0000000000..20f0088b0d --- /dev/null +++ b/files/fr/web/svg/element/mask/index.md @@ -0,0 +1,112 @@ +--- +title: +slug: Web/SVG/Element/mask +tags: + - Element + - Masque + - NeedsCompatTable + - SVG + - SVG Container +translation_of: Web/SVG/Element/mask +--- +
{{SVGRef}}
+ +

L'élément <mask> définit un masque alpha. Ce masque peut par la suite être appliqué sur une forme en utilisant la propriété {{SVGAttr("mask")}}.

+ +

Le masque permet de rendre des zones de l'élément sur lequel est appliqué (semi-)transparentes. On peut par exemple créer un effet de fondu en utilisant un dégradé, ce que le détourage ({{SVGElement('clipPath')}}) ne permet pas.

+ +

Exemple

+ + + +
<svg viewBox="-10 -10 120 120">
+  <mask id="myMask">
+    <!-- Tous les pixels blancs sont visibles -->
+    <rect x="0" y="0" width="100" height="100" fill="white" />
+
+    <!-- Tous les pixels noirs sont invisibles -->
+    <path d="M10,35 A20,20,0,0,1,50,35 A20,20,0,0,1,90,35 Q90,65,50,95 Q10,65,10,35 Z" fill="black" />
+  </mask>
+
+  <polygon points="-10,110 110,110 110,-10" fill="orange" />
+
+  <!-- Avec ce masque, on "perfore" un trou en forme de coeur à l'intérieur du cercle -->
+  <circle cx="50" cy="50" r="50" mask="url(#myMask)" />
+</svg>
+ +

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

+ +

Attributs

+ +
+
{{SVGAttr("height")}}
+
Définit la hauteur du masque.
+ Valeur: <length> ; Valeur par défaut: 120%; Animation: oui
+
{{SVGAttr("maskContentUnits")}}
+
Définit le système de coordonnées pour le contenu du <mask>.
+ Valeur: userSpaceOnUse|objectBoundingBox ; Valeur par défaut: userSpaceOnUse; Animation: oui
+
{{SVGAttr("maskUnits")}}
+
Définit le système de coordonnées pour les attributs {{SVGAttr("x")}}, {{SVGAttr("y")}}, {{SVGAttr("width")}} et {{SVGAttr("height")}} du <mask>.
+ Valeur: userSpaceOnUse|objectBoundingBox ; Valeur par défaut: objectBoundingBox; Animation: oui
+
{{SVGAttr("x")}}
+
Définit la coordonnée de l'axe x du coin supérieur gauche du masque.
+ Valeur: <coordinate> ; Valeur par défaut: -10%; Animation: oui
+
{{SVGAttr("y")}}
+
Définit la coordonnée de l'axe y du coin supérieur gauche du masque.
+ Valeur: <coordinate> ; Valeur par défaut: -10%; Animation: oui
+
{{SVGAttr("width")}}
+
Définit la largeur du masque.
+ Valeur: <length> ; Valeur par défaut: 120%; Animation: oui
+
+ +

Attributs globaux

+ +
+
Attributs de base
+
Notamment: {{SVGAttr('id')}}
+
Attributs de style
+
{{SVGAttr('class')}}, {{SVGAttr('style')}}
+
Attributs de traitement conditionnel
+
Notamment: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
+
Attributs de présentation
+
Notamment: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
+
+ +

Notes d'usage

+ +

{{svginfo}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('CSS Masks', '#MaskElement', '<mask>')}}{{Spec2('CSS Masks')}} 
{{SpecName('SVG1.1', 'masking.html#Masking', '<mask>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • Élément de détourage: {{SVGElement("clipPath")}}
  • +
  • Propriétés CSS de masque: {{cssxref("mask")}}, {{cssxref("mask-image")}},{{cssxref("mask-mode")}}, {{cssxref("mask-repeat")}}, {{cssxref("mask-position")}}, {{cssxref("mask-clip")}}, {{cssxref("mask-origin")}}, {{cssxref("mask-composite")}}, {{cssxref("mask-size")}}, {{cssxref("pointer-events")}}
  • +
diff --git a/files/fr/web/svg/element/metadata/index.html b/files/fr/web/svg/element/metadata/index.html deleted file mode 100644 index 63cf72721a..0000000000 --- a/files/fr/web/svg/element/metadata/index.html +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: -slug: Web/SVG/Element/metadata -tags: - - Element - - SVG - - SVG Description -translation_of: Web/SVG/Element/metadata ---- -
{{SVGRef}}
- -

L'élément SVG <metadata> permet d'ajouter des metadonnées au contenu SVG. Des metadonnées sont des données structurées qui donnent des informations sur le contenu du document. La balise <metadata> doit contenir des éléments d'un autre {{Glossary("namespace", "namespaces")}} {{Glossary("XML")}} tel que {{Glossary("RDF")}}, FOAF, etc.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -

Aucun

- -

Interface DOM

- -

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

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('SVG2', 'struct.html#MetadataElement', '<metadata>')}}{{Spec2('SVG2')}}Autorise les attributs d'événements globaux sur l'élément.
{{SpecName('SVG1.1', 'metadata.html#MetadataElement', '<metadata>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

diff --git a/files/fr/web/svg/element/metadata/index.md b/files/fr/web/svg/element/metadata/index.md new file mode 100644 index 0000000000..63cf72721a --- /dev/null +++ b/files/fr/web/svg/element/metadata/index.md @@ -0,0 +1,61 @@ +--- +title: +slug: Web/SVG/Element/metadata +tags: + - Element + - SVG + - SVG Description +translation_of: Web/SVG/Element/metadata +--- +
{{SVGRef}}
+ +

L'élément SVG <metadata> permet d'ajouter des metadonnées au contenu SVG. Des metadonnées sont des données structurées qui donnent des informations sur le contenu du document. La balise <metadata> doit contenir des éléments d'un autre {{Glossary("namespace", "namespaces")}} {{Glossary("XML")}} tel que {{Glossary("RDF")}}, FOAF, etc.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +

Aucun

+ +

Interface DOM

+ +

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

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('SVG2', 'struct.html#MetadataElement', '<metadata>')}}{{Spec2('SVG2')}}Autorise les attributs d'événements globaux sur l'élément.
{{SpecName('SVG1.1', 'metadata.html#MetadataElement', '<metadata>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

diff --git a/files/fr/web/svg/element/mpath/index.html b/files/fr/web/svg/element/mpath/index.html deleted file mode 100644 index ced9f15518..0000000000 --- a/files/fr/web/svg/element/mpath/index.html +++ /dev/null @@ -1,106 +0,0 @@ ---- -title: -slug: Web/SVG/Element/mpath -tags: - - Element - - SVG - - SVG Animation -translation_of: Web/SVG/Element/mpath ---- -
{{SVGRef}}
- -

L'élément <mpath> se place dans un élément {{SVGElement("animateMotion")}}, il permet de référencer un élément {{SVGElement("path")}} pour définir le chemin utilisé par l'animation.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("xlink:href")}}
  • -
- -

Interface DOM

- -

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

- -

Exemple

- -

SVG

- -
<svg width="100%" height="100%"  viewBox="0 0 500 300"
-     xmlns="http://www.w3.org/2000/svg"
-     xmlns:xlink="http://www.w3.org/1999/xlink" >
-
-  <rect x="1" y="1" width="498" height="298"
-        fill="none" stroke="blue" stroke-width="2" />
-
-  <!-- Affiche le chemin en bleu avec trois cercles
-       au début, au milieu et à la fin du chemin -->
-  <path id="path1" d="M100,250 C 100,50 400,50 400,250"
-        fill="none" stroke="blue" stroke-width="7.06"  />
-  <circle cx="100" cy="250" r="17.64" fill="blue"  />
-  <circle cx="250" cy="100" r="17.64" fill="blue"  />
-  <circle cx="400" cy="250" r="17.64" fill="blue"  />
-
-  <!-- Triangle qui sera déplacé le long du chemin.
-       Il est définit avec une orientation verticale, la base du triangle
-       est centrée horizontalement juste au-dessus de l'origine. -->
-  <path d="M-25,-12.5 L25,-12.5 L 0,-87.5 z"
-        fill="yellow" stroke="red" stroke-width="7.06"  >
-    <!-- Référence le path à utiliser -->
-    <animateMotion dur="6s" repeatCount="indefinite" rotate="auto" >
-       <mpath xlink:href="#path1"/>
-    </animateMotion>
-  </path>
-</svg>
-
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 250, 165)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("SVG Animations 2", "#MPathElement", "<mpath>")}}{{Spec2("SVG Animations 2")}}Aucun changement
{{SpecName("SVG1.1", "animate.html#MPathElement", "<mpath>")}}{{Spec2("SVG1.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("animateMotion")}}
  • -
diff --git a/files/fr/web/svg/element/mpath/index.md b/files/fr/web/svg/element/mpath/index.md new file mode 100644 index 0000000000..ced9f15518 --- /dev/null +++ b/files/fr/web/svg/element/mpath/index.md @@ -0,0 +1,106 @@ +--- +title: +slug: Web/SVG/Element/mpath +tags: + - Element + - SVG + - SVG Animation +translation_of: Web/SVG/Element/mpath +--- +
{{SVGRef}}
+ +

L'élément <mpath> se place dans un élément {{SVGElement("animateMotion")}}, il permet de référencer un élément {{SVGElement("path")}} pour définir le chemin utilisé par l'animation.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("xlink:href")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg width="100%" height="100%"  viewBox="0 0 500 300"
+     xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink" >
+
+  <rect x="1" y="1" width="498" height="298"
+        fill="none" stroke="blue" stroke-width="2" />
+
+  <!-- Affiche le chemin en bleu avec trois cercles
+       au début, au milieu et à la fin du chemin -->
+  <path id="path1" d="M100,250 C 100,50 400,50 400,250"
+        fill="none" stroke="blue" stroke-width="7.06"  />
+  <circle cx="100" cy="250" r="17.64" fill="blue"  />
+  <circle cx="250" cy="100" r="17.64" fill="blue"  />
+  <circle cx="400" cy="250" r="17.64" fill="blue"  />
+
+  <!-- Triangle qui sera déplacé le long du chemin.
+       Il est définit avec une orientation verticale, la base du triangle
+       est centrée horizontalement juste au-dessus de l'origine. -->
+  <path d="M-25,-12.5 L25,-12.5 L 0,-87.5 z"
+        fill="yellow" stroke="red" stroke-width="7.06"  >
+    <!-- Référence le path à utiliser -->
+    <animateMotion dur="6s" repeatCount="indefinite" rotate="auto" >
+       <mpath xlink:href="#path1"/>
+    </animateMotion>
+  </path>
+</svg>
+
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 250, 165)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("SVG Animations 2", "#MPathElement", "<mpath>")}}{{Spec2("SVG Animations 2")}}Aucun changement
{{SpecName("SVG1.1", "animate.html#MPathElement", "<mpath>")}}{{Spec2("SVG1.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("animateMotion")}}
  • +
diff --git a/files/fr/web/svg/element/path/index.html b/files/fr/web/svg/element/path/index.html deleted file mode 100644 index 9727d692be..0000000000 --- a/files/fr/web/svg/element/path/index.html +++ /dev/null @@ -1,69 +0,0 @@ ---- -title: -slug: Web/SVG/Element/path -tags: - - SVG -translation_of: Web/SVG/Element/path ---- -
{{SVGRef}}
- -

L'élément path est l'élément générique pour définir une forme. Toutes les formes basiques peuvent aussi être faites à partir de path.

- -

Usage

- -

{{svginfo}}

- -

Exemple

- -
<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
-  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg width="100%" height="100%" viewBox="0 0 400 400"
-     xmlns="http://www.w3.org/2000/svg" version="1.1">
-
-  <path d="M 100 100 L 300 100 L 200 300 z"
-        fill="red" stroke-width="3" />
-</svg>
-
- -

Attributs

- -

Attributs Globaux

- - - -

Attributs spécifiques

- -
    -
  • {{ SVGAttr("d") }}
  • -
  • {{ SVGAttr("pathLength") }}
  • -
- -

Interface DOM

- -

Cet élément implémente l'interface SVGPathElement.

- -

Compatibilité des navigateurs

- -

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

- -

Voir également

- - diff --git a/files/fr/web/svg/element/path/index.md b/files/fr/web/svg/element/path/index.md new file mode 100644 index 0000000000..9727d692be --- /dev/null +++ b/files/fr/web/svg/element/path/index.md @@ -0,0 +1,69 @@ +--- +title: +slug: Web/SVG/Element/path +tags: + - SVG +translation_of: Web/SVG/Element/path +--- +
{{SVGRef}}
+ +

L'élément path est l'élément générique pour définir une forme. Toutes les formes basiques peuvent aussi être faites à partir de path.

+ +

Usage

+ +

{{svginfo}}

+ +

Exemple

+ +
<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
+  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg width="100%" height="100%" viewBox="0 0 400 400"
+     xmlns="http://www.w3.org/2000/svg" version="1.1">
+
+  <path d="M 100 100 L 300 100 L 200 300 z"
+        fill="red" stroke-width="3" />
+</svg>
+
+ +

Attributs

+ +

Attributs Globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{ SVGAttr("d") }}
  • +
  • {{ SVGAttr("pathLength") }}
  • +
+ +

Interface DOM

+ +

Cet élément implémente l'interface SVGPathElement.

+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir également

+ + diff --git a/files/fr/web/svg/element/pattern/index.html b/files/fr/web/svg/element/pattern/index.html deleted file mode 100644 index e15af97156..0000000000 --- a/files/fr/web/svg/element/pattern/index.html +++ /dev/null @@ -1,99 +0,0 @@ ---- -title: -slug: Web/SVG/Element/pattern -tags: - - Element - - SVG - - SVG Container -browser-compat: svg.elements.pattern -translation_of: Web/SVG/Element/pattern ---- -
{{SVGRef}}
- -

L'élément <pattern> définit un objet graphique qui peut être redessiné à des intervalles de coordonnées x et y répétés ("en mosaïque") pour couvrir une surface.

- -

Le <pattern> est référéne par les attributs {{SVGAttr("fill")}} et {{SVGAttr("stroke")}} sur les autres éléments graphiques, pour appliquer un remplissage ou une bordure sur ces éléments avec le motif référencé.

- -

Exemple

- - - -
<svg viewBox="0 0 230 100" xmlns="http://www.w3.org/2000/svg">
-  <defs>
-    <pattern id="star" viewBox="0,0,10,10" width="10%" height="10%">
-      <polygon points="0,0 2,5 0,10 5,8 10,10 8,5 10,0 5,2"/>
-    </pattern>
-  </defs>
-
-  <circle cx="50"  cy="50" r="50" fill="url(#star)"/>
-  <circle cx="180" cy="50" r="40" fill="none" stroke-width="20" stroke="url(#star)"/>
-</svg>
- -

{{EmbedLiveSample('exemple', 150, '100%')}}

- -

Attributs

- -
-
{{SVGAttr("height")}}
-
Cet attribut détermine la hauteur du motif de mosaïque.
- Type de valeur : <longueur>|<pourcentage>; Valeur par défaut : 0; Animable : oui
-
{{SVGAttr("href")}}
-
Cet attribut référence un patron de motif qui fournit les valeurs par défaut des attributs de l'élément <pattern>.
- Type de valeur: <URL>; Valeur par défaut : none; Animable: yes
-
{{SVGAttr("patternContentUnits")}}
-

Cet attribut définit le système de coordonnées pour le contenu de {{SVGElement("pattern")}}. Type de valeur : userSpaceOnUse|objectBoundingBox; Valeur par défaut : userSpaceOnUse; Animable: yes

-
-

Note : Cet attribut n'a pas d'effet si l'attribut viewBox est définit sur l'élément <pattern>.

-
-
-
{{SVGAttr("patternTransform")}}
-

Cet attribut contient la définition d'une transformation optionnelle supplémentaire du système de coordonnées du motif vers celui de la cible. Type de valeur : <transform-list>; Valeur par défaut : none; Animatable: yes

-
{{SVGAttr("patternUnits")}}
-

Cet attribut définit le système de coordonnées pour les attributs x, y, width , et height.Type de valeur : userSpaceOnUse|objectBoundingBox; Valeur par défaut : objectBoundingBox; Animable: yes

-
{{SVGAttr("preserveAspectRatio")}}
-

Cet attribut définit comme le fragment SVG doit être déformé s'il est embarqué dans un conteneur avec un ratio d'aspect différent. - Type de valeur : (none| xMinYMin| xMidYMin| xMaxYMin| xMinYMid| xMidYMid| xMaxYMid| xMinYMax| xMidYMax| xMaxYMax) (meet|slice)? ; Valeur par défaut : xMidYMid meet; Animable: yes

-
{{SVGAttr("viewBox")}}
-

Cet attribut définit les limites de la fenêtre de rendu du SVG pour le fragment du motif.Type de valeur : <list-of-numbers> ; Valeur par défaut : none; Animable: yes

-
{{SVGAttr("width")}}
-

Cet attribut détermine la largeur du motif de mosaïque.
- Type de valeur : <length>|<percentage> ; Valeur par défaut : 0; Animable: yes

-
{{SVGAttr("x")}}
-

Cet attribut détermine le déplacement en coordonnée x du motif de mosaïque.Type de valeur : <length>|<percentage> ; Valeur par défaut : 0; Animatable: yes

-
{{SVGAttr("xlink:href")}} {{deprecated_inline("SVG2")}}
-
Cet attribut référence un patron de motif qui fournit des valeurs par défaut pour les attributs du <pattern>.
- Type de valeur : <URL>; Valeur par défaut : none; Animable: yes

-
-

Note : Pour les navigateurs implémentant href, si à la fois href et xlink:href sont définis, xlink:href sera ignoré et seulement href sera utilisé.

-
-
-
{{SVGAttr("y")}}
-

Cet attribut détermine le déplacement en coordonnée y du motif de mosaïque. Type de valeur : <length>|<percentage> ; Valeur par défaut : 0; Animable: yes

-
- -

Attributs globaux

- -
-
Attributs principaux
-
Plus notamment : {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
-
Attributs de style
-
{{SVGAttr('class')}}, {{SVGAttr('style')}}
-
Attributs de traitement conditionnel
-
Plus notamment : {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
-
Attributs de présentation
-
Plus notamment : {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
-
Attributs XLink
-
Plus notamment : {{SVGAttr("xlink:title")}}
-
- -

Notes d'utilisation

- -

{{svginfo}}

- -

Spécifications

- -{{Specifications}} - -

Compatibilité des navigateurs

- -

{{Compat}}

diff --git a/files/fr/web/svg/element/pattern/index.md b/files/fr/web/svg/element/pattern/index.md new file mode 100644 index 0000000000..e15af97156 --- /dev/null +++ b/files/fr/web/svg/element/pattern/index.md @@ -0,0 +1,99 @@ +--- +title: +slug: Web/SVG/Element/pattern +tags: + - Element + - SVG + - SVG Container +browser-compat: svg.elements.pattern +translation_of: Web/SVG/Element/pattern +--- +
{{SVGRef}}
+ +

L'élément <pattern> définit un objet graphique qui peut être redessiné à des intervalles de coordonnées x et y répétés ("en mosaïque") pour couvrir une surface.

+ +

Le <pattern> est référéne par les attributs {{SVGAttr("fill")}} et {{SVGAttr("stroke")}} sur les autres éléments graphiques, pour appliquer un remplissage ou une bordure sur ces éléments avec le motif référencé.

+ +

Exemple

+ + + +
<svg viewBox="0 0 230 100" xmlns="http://www.w3.org/2000/svg">
+  <defs>
+    <pattern id="star" viewBox="0,0,10,10" width="10%" height="10%">
+      <polygon points="0,0 2,5 0,10 5,8 10,10 8,5 10,0 5,2"/>
+    </pattern>
+  </defs>
+
+  <circle cx="50"  cy="50" r="50" fill="url(#star)"/>
+  <circle cx="180" cy="50" r="40" fill="none" stroke-width="20" stroke="url(#star)"/>
+</svg>
+ +

{{EmbedLiveSample('exemple', 150, '100%')}}

+ +

Attributs

+ +
+
{{SVGAttr("height")}}
+
Cet attribut détermine la hauteur du motif de mosaïque.
+ Type de valeur : <longueur>|<pourcentage>; Valeur par défaut : 0; Animable : oui
+
{{SVGAttr("href")}}
+
Cet attribut référence un patron de motif qui fournit les valeurs par défaut des attributs de l'élément <pattern>.
+ Type de valeur: <URL>; Valeur par défaut : none; Animable: yes
+
{{SVGAttr("patternContentUnits")}}
+

Cet attribut définit le système de coordonnées pour le contenu de {{SVGElement("pattern")}}. Type de valeur : userSpaceOnUse|objectBoundingBox; Valeur par défaut : userSpaceOnUse; Animable: yes

+
+

Note : Cet attribut n'a pas d'effet si l'attribut viewBox est définit sur l'élément <pattern>.

+
+
+
{{SVGAttr("patternTransform")}}
+

Cet attribut contient la définition d'une transformation optionnelle supplémentaire du système de coordonnées du motif vers celui de la cible. Type de valeur : <transform-list>; Valeur par défaut : none; Animatable: yes

+
{{SVGAttr("patternUnits")}}
+

Cet attribut définit le système de coordonnées pour les attributs x, y, width , et height.Type de valeur : userSpaceOnUse|objectBoundingBox; Valeur par défaut : objectBoundingBox; Animable: yes

+
{{SVGAttr("preserveAspectRatio")}}
+

Cet attribut définit comme le fragment SVG doit être déformé s'il est embarqué dans un conteneur avec un ratio d'aspect différent. + Type de valeur : (none| xMinYMin| xMidYMin| xMaxYMin| xMinYMid| xMidYMid| xMaxYMid| xMinYMax| xMidYMax| xMaxYMax) (meet|slice)? ; Valeur par défaut : xMidYMid meet; Animable: yes

+
{{SVGAttr("viewBox")}}
+

Cet attribut définit les limites de la fenêtre de rendu du SVG pour le fragment du motif.Type de valeur : <list-of-numbers> ; Valeur par défaut : none; Animable: yes

+
{{SVGAttr("width")}}
+

Cet attribut détermine la largeur du motif de mosaïque.
+ Type de valeur : <length>|<percentage> ; Valeur par défaut : 0; Animable: yes

+
{{SVGAttr("x")}}
+

Cet attribut détermine le déplacement en coordonnée x du motif de mosaïque.Type de valeur : <length>|<percentage> ; Valeur par défaut : 0; Animatable: yes

+
{{SVGAttr("xlink:href")}} {{deprecated_inline("SVG2")}}
+
Cet attribut référence un patron de motif qui fournit des valeurs par défaut pour les attributs du <pattern>.
+ Type de valeur : <URL>; Valeur par défaut : none; Animable: yes

+
+

Note : Pour les navigateurs implémentant href, si à la fois href et xlink:href sont définis, xlink:href sera ignoré et seulement href sera utilisé.

+
+
+
{{SVGAttr("y")}}
+

Cet attribut détermine le déplacement en coordonnée y du motif de mosaïque. Type de valeur : <length>|<percentage> ; Valeur par défaut : 0; Animable: yes

+
+ +

Attributs globaux

+ +
+
Attributs principaux
+
Plus notamment : {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
+
Attributs de style
+
{{SVGAttr('class')}}, {{SVGAttr('style')}}
+
Attributs de traitement conditionnel
+
Plus notamment : {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
+
Attributs de présentation
+
Plus notamment : {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
+
Attributs XLink
+
Plus notamment : {{SVGAttr("xlink:title")}}
+
+ +

Notes d'utilisation

+ +

{{svginfo}}

+ +

Spécifications

+ +{{Specifications}} + +

Compatibilité des navigateurs

+ +

{{Compat}}

diff --git a/files/fr/web/svg/element/polygon/index.html b/files/fr/web/svg/element/polygon/index.html deleted file mode 100644 index e410f82a01..0000000000 --- a/files/fr/web/svg/element/polygon/index.html +++ /dev/null @@ -1,78 +0,0 @@ ---- -title: -slug: Web/SVG/Element/polygon -tags: - - Element - - Reference - - SVG - - SVG Graphique -browser-compat: svg.elements.polygon -translation_of: Web/SVG/Element/polygon ---- -
{{SVGRef}}
- -

L'élément <polygon> délimite une forme close composée d'un groupe de plusieurs segments de droites. Le dernier point est relié au premier afin de fermer la forme et de relier les traits entre deux. Pour créer une forme ouverte, voir l'élément {{SVGElement("polyline")}}.

- -

Exemple

- - - -
<svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg">
-  <!-- Exemple d'un polygone avec le remplissage par défaut -->
-  <polygon points="0,100 50,25 50,75 100,0" />
-
-  <!-- Le même polygone sans remplissage et avec un contour -->
-  <polygon points="100,100 150,25 150,75 200,0" fill="none" stroke="black" />
-</svg>
- -

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

- -

Attributs

- -
-
{{SVGAttr('points')}}
-
Cette attribut défini une liste de point (paire de coordonnées absolue x et y ) nécessaire pour dessiner le polygone.
- Type de valeur: <number>+ ; Valeur par défaut: ""; Peut être animé: oui
-
{{SVGAttr("pathLength")}}
-
Cet attribut spécifie la taille totale pour le chemin dans l'unité de l'utilisateur.
- Type de valeur: <number>; Valeur par défaut: aucune; Peut être animé: oui
-
- -

Attributs Globaux

- -
-
Attribut de base
-
Principalement: {{SVGAttr('id')}} et {{SVGAttr('tabindex')}}
-
Attribut de style
-
{{SVGAttr('class')}} et {{SVGAttr('style')}}
-
Attributs conditionnels
-
Principalement: {{SVGAttr('requiredExtensions')}} et {{SVGAttr('systemLanguage')}}
-
Attributs d'évènements
-
Attribut d'évènement global, Attribut d'évènement graphique
-
Attributs de présentation
-
Principalement: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}} et {{SVGAttr('visibility')}}
-
Attributs ARIA
-
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role
-
- -

Contexte d'usage

- -

{{svginfo}}

- -

Interface DOM

- -

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

- -

Spécifications

- -

{{Specifications}}

- -

Compatibilité avec les navigateurs

- -

{{Compat}}

- -

Voir également

- -
    -
  • Autres formes élémentaires en SVG: {{ SVGElement('circle') }}, {{ SVGElement('ellipse') }}, {{ SVGElement('line') }}, {{ SVGElement('polyline') }} et {{ SVGElement('rect') }}.
  • -
diff --git a/files/fr/web/svg/element/polygon/index.md b/files/fr/web/svg/element/polygon/index.md new file mode 100644 index 0000000000..e410f82a01 --- /dev/null +++ b/files/fr/web/svg/element/polygon/index.md @@ -0,0 +1,78 @@ +--- +title: +slug: Web/SVG/Element/polygon +tags: + - Element + - Reference + - SVG + - SVG Graphique +browser-compat: svg.elements.polygon +translation_of: Web/SVG/Element/polygon +--- +
{{SVGRef}}
+ +

L'élément <polygon> délimite une forme close composée d'un groupe de plusieurs segments de droites. Le dernier point est relié au premier afin de fermer la forme et de relier les traits entre deux. Pour créer une forme ouverte, voir l'élément {{SVGElement("polyline")}}.

+ +

Exemple

+ + + +
<svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg">
+  <!-- Exemple d'un polygone avec le remplissage par défaut -->
+  <polygon points="0,100 50,25 50,75 100,0" />
+
+  <!-- Le même polygone sans remplissage et avec un contour -->
+  <polygon points="100,100 150,25 150,75 200,0" fill="none" stroke="black" />
+</svg>
+ +

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

+ +

Attributs

+ +
+
{{SVGAttr('points')}}
+
Cette attribut défini une liste de point (paire de coordonnées absolue x et y ) nécessaire pour dessiner le polygone.
+ Type de valeur: <number>+ ; Valeur par défaut: ""; Peut être animé: oui
+
{{SVGAttr("pathLength")}}
+
Cet attribut spécifie la taille totale pour le chemin dans l'unité de l'utilisateur.
+ Type de valeur: <number>; Valeur par défaut: aucune; Peut être animé: oui
+
+ +

Attributs Globaux

+ +
+
Attribut de base
+
Principalement: {{SVGAttr('id')}} et {{SVGAttr('tabindex')}}
+
Attribut de style
+
{{SVGAttr('class')}} et {{SVGAttr('style')}}
+
Attributs conditionnels
+
Principalement: {{SVGAttr('requiredExtensions')}} et {{SVGAttr('systemLanguage')}}
+
Attributs d'évènements
+
Attribut d'évènement global, Attribut d'évènement graphique
+
Attributs de présentation
+
Principalement: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}} et {{SVGAttr('visibility')}}
+
Attributs ARIA
+
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role
+
+ +

Contexte d'usage

+ +

{{svginfo}}

+ +

Interface DOM

+ +

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

+ +

Spécifications

+ +

{{Specifications}}

+ +

Compatibilité avec les navigateurs

+ +

{{Compat}}

+ +

Voir également

+ +
    +
  • Autres formes élémentaires en SVG: {{ SVGElement('circle') }}, {{ SVGElement('ellipse') }}, {{ SVGElement('line') }}, {{ SVGElement('polyline') }} et {{ SVGElement('rect') }}.
  • +
diff --git a/files/fr/web/svg/element/polyline/index.html b/files/fr/web/svg/element/polyline/index.html deleted file mode 100644 index 42325ffe60..0000000000 --- a/files/fr/web/svg/element/polyline/index.html +++ /dev/null @@ -1,129 +0,0 @@ ---- -title: -slug: Web/SVG/Element/polyline -tags: - - Element - - Graphisme - - Reference - - SVG -translation_of: Web/SVG/Element/polyline ---- -
{{SVGRef}}
- -

L'élément SVG <polyline> est une forme SVG basique qui crée des lignes entre plusieurs points. Un élément polyline est généralement utilisé pour créer des tracés ouverts car le dernier point n'est pas nécessairement connecté avec le premier. Lorsqu'on désire réaliser des formes fermées, on privilégiera l'élément {{SVGElement("polygon")}}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs universels

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("points")}}
  • -
- -

Interface DOM

- -

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

- -

Exemples

- -

Utilisation basique

- -

SVG

- -
<svg width="120" height="120" xmlns="http://www.w3.org/2000/svg">
-  <polyline fill="none" stroke="black"
-      points="20,100 40,60 70,80 100,20"/>
-</svg>
- -

Résultat

- -

{{EmbedLiveSample("Utilisation_basique", 120, 120)}}

- -

Escaliers

- -

HTML

- -
<div class="contain-demo">
-  <svg width="150" height="200">
-    <desc>
-      Première polyligne orange avec
-      remplissage blanc.
-    </desc>
-    <polyline
-        points="0,40 40,40 40,80 80,80 80,120 120,120 120,160"
-        fill="white" stroke="#D07735" stroke-width="6" />
-  </svg>
-  <svg width="150" height="200">
-    <desc>
-      Seconde polyligne orange avec
-      remplissage jaune.
-    </desc>
-    <polyline
-        points="0,40 40,40 40,80 80,80 80,120 120,120 120,160"
-        fill="#F9F38C" stroke="#D07735" stroke-width="6" />
-  </svg>
-</div>
-
- -

CSS

- -
.contain-demo {
-  margin: 25px auto;
-  text-align: center;
-}
- -

Résultat

- -

{{EmbedLiveSample("Escaliers", 400, 500)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationÉtatCommentaires
{{SpecName('SVG2', 'shapes.html#PolylineElement', '<polyline>')}}{{Spec2('SVG2')}} 
{{SpecName('SVG1.1', 'shapes.html#PolylineElement', '<polyline>')}}{{Spec2('SVG1.1')}}Définition initiale.
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("line")}}
  • -
  • {{SVGElement("polygon")}}
  • -
diff --git a/files/fr/web/svg/element/polyline/index.md b/files/fr/web/svg/element/polyline/index.md new file mode 100644 index 0000000000..42325ffe60 --- /dev/null +++ b/files/fr/web/svg/element/polyline/index.md @@ -0,0 +1,129 @@ +--- +title: +slug: Web/SVG/Element/polyline +tags: + - Element + - Graphisme + - Reference + - SVG +translation_of: Web/SVG/Element/polyline +--- +
{{SVGRef}}
+ +

L'élément SVG <polyline> est une forme SVG basique qui crée des lignes entre plusieurs points. Un élément polyline est généralement utilisé pour créer des tracés ouverts car le dernier point n'est pas nécessairement connecté avec le premier. Lorsqu'on désire réaliser des formes fermées, on privilégiera l'élément {{SVGElement("polygon")}}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs universels

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("points")}}
  • +
+ +

Interface DOM

+ +

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

+ +

Exemples

+ +

Utilisation basique

+ +

SVG

+ +
<svg width="120" height="120" xmlns="http://www.w3.org/2000/svg">
+  <polyline fill="none" stroke="black"
+      points="20,100 40,60 70,80 100,20"/>
+</svg>
+ +

Résultat

+ +

{{EmbedLiveSample("Utilisation_basique", 120, 120)}}

+ +

Escaliers

+ +

HTML

+ +
<div class="contain-demo">
+  <svg width="150" height="200">
+    <desc>
+      Première polyligne orange avec
+      remplissage blanc.
+    </desc>
+    <polyline
+        points="0,40 40,40 40,80 80,80 80,120 120,120 120,160"
+        fill="white" stroke="#D07735" stroke-width="6" />
+  </svg>
+  <svg width="150" height="200">
+    <desc>
+      Seconde polyligne orange avec
+      remplissage jaune.
+    </desc>
+    <polyline
+        points="0,40 40,40 40,80 80,80 80,120 120,120 120,160"
+        fill="#F9F38C" stroke="#D07735" stroke-width="6" />
+  </svg>
+</div>
+
+ +

CSS

+ +
.contain-demo {
+  margin: 25px auto;
+  text-align: center;
+}
+ +

Résultat

+ +

{{EmbedLiveSample("Escaliers", 400, 500)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationÉtatCommentaires
{{SpecName('SVG2', 'shapes.html#PolylineElement', '<polyline>')}}{{Spec2('SVG2')}} 
{{SpecName('SVG1.1', 'shapes.html#PolylineElement', '<polyline>')}}{{Spec2('SVG1.1')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("line")}}
  • +
  • {{SVGElement("polygon")}}
  • +
diff --git a/files/fr/web/svg/element/radialgradient/index.html b/files/fr/web/svg/element/radialgradient/index.html deleted file mode 100644 index 052f193b4a..0000000000 --- a/files/fr/web/svg/element/radialgradient/index.html +++ /dev/null @@ -1,103 +0,0 @@ ---- -title: -slug: Web/SVG/Element/radialGradient -tags: - - Element - - SVG - - SVG Dégradé -translation_of: Web/SVG/Element/radialGradient ---- -
{{SVGRef}}
- -
L'élément SVG <radialGradient> permet de définir un dégradé radial afin de dessiner un contour, ou de remplir des éléments SVG.
- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Attributs spécifiques

- -
    -
  • {{SVGAttr("gradientUnits")}}
  • -
  • {{SVGAttr("gradientTransform")}}
  • -
  • {{SVGAttr("cx")}}
  • -
  • {{SVGAttr("cy")}}
  • -
  • {{SVGAttr("r")}}
  • -
  • {{SVGAttr("fx")}}
  • -
  • {{SVGAttr("fy")}}
  • -
  • {{SVGAttr("fr")}}
  • -
  • {{SVGAttr("spreadMethod")}}
  • -
  • {{SVGAttr("xlink:href")}}
  • -
- -

DOM Interface

- -

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

- -

Exemple

- -

SVG

- -
<svg width="120" height="120" viewBox="0 0 120 120"
-   xmlns="http://www.w3.org/2000/svg">
-
-  <defs>
-    <radialGradient id="exampleGradient">
-      <stop offset="10%" stop-color="gold"/>
-      <stop offset="95%" stop-color="green"/>
-    </radialGradient>
-  </defs>
-
-  <circle fill="url(#exampleGradient)" cx="60" cy="60" r="50"/>
-</svg>
- -

Résultat

- -

{{ EmbedLiveSample('Exemple', 120, 120, '', 'Web/SVG/Element/radialGradient') }}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('SVG2', 'pservers.html#RadialGradients', '<radialGradient>')}}{{Spec2('SVG2')}}Added fr attribute
{{SpecName('SVG1.1', 'pservers.html#RadialGradients', '<radialGradient>')}}{{Spec2('SVG1.1')}}Initial definition
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("linearGradient")}}
  • -
diff --git a/files/fr/web/svg/element/radialgradient/index.md b/files/fr/web/svg/element/radialgradient/index.md new file mode 100644 index 0000000000..052f193b4a --- /dev/null +++ b/files/fr/web/svg/element/radialgradient/index.md @@ -0,0 +1,103 @@ +--- +title: +slug: Web/SVG/Element/radialGradient +tags: + - Element + - SVG + - SVG Dégradé +translation_of: Web/SVG/Element/radialGradient +--- +
{{SVGRef}}
+ +
L'élément SVG <radialGradient> permet de définir un dégradé radial afin de dessiner un contour, ou de remplir des éléments SVG.
+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{SVGAttr("gradientUnits")}}
  • +
  • {{SVGAttr("gradientTransform")}}
  • +
  • {{SVGAttr("cx")}}
  • +
  • {{SVGAttr("cy")}}
  • +
  • {{SVGAttr("r")}}
  • +
  • {{SVGAttr("fx")}}
  • +
  • {{SVGAttr("fy")}}
  • +
  • {{SVGAttr("fr")}}
  • +
  • {{SVGAttr("spreadMethod")}}
  • +
  • {{SVGAttr("xlink:href")}}
  • +
+ +

DOM Interface

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg width="120" height="120" viewBox="0 0 120 120"
+   xmlns="http://www.w3.org/2000/svg">
+
+  <defs>
+    <radialGradient id="exampleGradient">
+      <stop offset="10%" stop-color="gold"/>
+      <stop offset="95%" stop-color="green"/>
+    </radialGradient>
+  </defs>
+
+  <circle fill="url(#exampleGradient)" cx="60" cy="60" r="50"/>
+</svg>
+ +

Résultat

+ +

{{ EmbedLiveSample('Exemple', 120, 120, '', 'Web/SVG/Element/radialGradient') }}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('SVG2', 'pservers.html#RadialGradients', '<radialGradient>')}}{{Spec2('SVG2')}}Added fr attribute
{{SpecName('SVG1.1', 'pservers.html#RadialGradients', '<radialGradient>')}}{{Spec2('SVG1.1')}}Initial definition
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("linearGradient")}}
  • +
diff --git a/files/fr/web/svg/element/rect/index.html b/files/fr/web/svg/element/rect/index.html deleted file mode 100644 index aa18e5a282..0000000000 --- a/files/fr/web/svg/element/rect/index.html +++ /dev/null @@ -1,72 +0,0 @@ ---- -title: -slug: Web/SVG/Element/rect -tags: - - SVG - - SVG Element - - SVG Reference -translation_of: Web/SVG/Element/rect ---- -
{{SVGRef}}{{Draft("Cette version n'est pas à jour relativement à la version anglaise de référence, merci d'en tenir compte.")}}
- -

L'élément rect est un élément de Formes basiques, utilisé pour dessiner des rectangles à partir de la  position d'un angle, de largeur et de la hauteur. Il peut aussi être utilisé avec des arrondis.

- -

Usage

- -

{{svginfo}}

- -

Exemple

- - - -
<svg viewBox="0 0 220 100" xmlns="http://www.w3.org/2000/svg">
-  <!-- Simple rect element -->
-  <rect x="0" y="0" width="100" height="100" />
-
-  <!-- Rounded corner rect element -->
-  <rect x="120" y="0" width="100" height="100" rx="15" ry="15" />
-</svg>
- -

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

- -

Attributs

- -

Attributs Globaux

- - - -

Attributs spécifiques

- -
    -
  • {{ SVGAttr("x") }}
  • -
  • {{ SVGAttr("y") }}
  • -
  • {{ SVGAttr("width") }}
  • -
  • {{ SVGAttr("height") }}
  • -
  • {{ SVGAttr("rx") }}
  • -
  • {{ SVGAttr("ry") }}
  • -
- -

Interface DOM

- -

Cet élément implémente l'interface SVGRectElement .

- -

Compatibilité avec les navigateurs

- -

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

- -

 

- -

Voir également

- -
    -
  • {{ SVGElement("path") }}
  • -
diff --git a/files/fr/web/svg/element/rect/index.md b/files/fr/web/svg/element/rect/index.md new file mode 100644 index 0000000000..aa18e5a282 --- /dev/null +++ b/files/fr/web/svg/element/rect/index.md @@ -0,0 +1,72 @@ +--- +title: +slug: Web/SVG/Element/rect +tags: + - SVG + - SVG Element + - SVG Reference +translation_of: Web/SVG/Element/rect +--- +
{{SVGRef}}{{Draft("Cette version n'est pas à jour relativement à la version anglaise de référence, merci d'en tenir compte.")}}
+ +

L'élément rect est un élément de Formes basiques, utilisé pour dessiner des rectangles à partir de la  position d'un angle, de largeur et de la hauteur. Il peut aussi être utilisé avec des arrondis.

+ +

Usage

+ +

{{svginfo}}

+ +

Exemple

+ + + +
<svg viewBox="0 0 220 100" xmlns="http://www.w3.org/2000/svg">
+  <!-- Simple rect element -->
+  <rect x="0" y="0" width="100" height="100" />
+
+  <!-- Rounded corner rect element -->
+  <rect x="120" y="0" width="100" height="100" rx="15" ry="15" />
+</svg>
+ +

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

+ +

Attributs

+ +

Attributs Globaux

+ + + +

Attributs spécifiques

+ +
    +
  • {{ SVGAttr("x") }}
  • +
  • {{ SVGAttr("y") }}
  • +
  • {{ SVGAttr("width") }}
  • +
  • {{ SVGAttr("height") }}
  • +
  • {{ SVGAttr("rx") }}
  • +
  • {{ SVGAttr("ry") }}
  • +
+ +

Interface DOM

+ +

Cet élément implémente l'interface SVGRectElement .

+ +

Compatibilité avec les navigateurs

+ +

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

+ +

 

+ +

Voir également

+ +
    +
  • {{ SVGElement("path") }}
  • +
diff --git a/files/fr/web/svg/element/stop/index.html b/files/fr/web/svg/element/stop/index.html deleted file mode 100644 index d5e19bfcff..0000000000 --- a/files/fr/web/svg/element/stop/index.html +++ /dev/null @@ -1,98 +0,0 @@ ---- -title: -slug: Web/SVG/Element/stop -translation_of: Web/SVG/Element/stop ---- -
{{SVGRef}}
- -

L'élément SVG <stop> définit une couleur supplémentaire dans une palette à utiliser pour un dégradé, et est contenu dans un élément {{SVGElement("linearGradient")}} ou {{SVGElement("radialGradient")}}.

- -

Contexte d'utilisation

- -

{{svginfo}}

- -

Attributs

- -

Attributs globaux

- - - -

Specific attributes

- -
    -
  • {{SVGAttr("offset")}}
  • -
  • {{SVGAttr("stop-color")}}
  • -
  • {{SVGAttr("stop-opacity")}}
  • -
- -

DOM Interface

- -

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

- -

Exemple

- -

SVG

- -
<svg width="160" height="95" viewBox="0 0 80 40"
-     xmlns="http://www.w3.org/2000/svg">
-
-  <defs>
-    <linearGradient id="MyGradient">
-      <stop offset="5%" stop-color="#F60" />
-      <stop offset="95%" stop-color="#FF6" />
-    </linearGradient>
-  </defs>
-
-  <!-- Contour de la zone de dessin en noir -->
-  <rect fill="none" stroke="black"
-        x="0.5" y="0.5" width="79" height="39"/>
-
-  <!-- Le rectangle est rempli avec un dégradé linéaire -->
-  <rect fill="url(#MyGradient)" stroke="black" stroke-width="1"
-        x="10" y="10" width="60" height="20"/>
-</svg>
-
- -

Résultat

- -

{{EmbedLiveSample("Exemple", 160, 95)}}

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('SVG2', 'pservers.html#GradientStops', '<stop>')}}{{Spec2('SVG2')}} 
{{SpecName('SVG1.1', 'pservers.html#GradientStops', '<stop>')}}{{Spec2('SVG1.1')}}Définition initiale
- -

Compatibilité des navigateurs

- -

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

- -

Voir aussi

- -
    -
  • {{SVGElement("linearGradient")}}
  • -
  • {{SVGElement("radialGradient")}}
  • -
diff --git a/files/fr/web/svg/element/stop/index.md b/files/fr/web/svg/element/stop/index.md new file mode 100644 index 0000000000..d5e19bfcff --- /dev/null +++ b/files/fr/web/svg/element/stop/index.md @@ -0,0 +1,98 @@ +--- +title: +slug: Web/SVG/Element/stop +translation_of: Web/SVG/Element/stop +--- +
{{SVGRef}}
+ +

L'élément SVG <stop> définit une couleur supplémentaire dans une palette à utiliser pour un dégradé, et est contenu dans un élément {{SVGElement("linearGradient")}} ou {{SVGElement("radialGradient")}}.

+ +

Contexte d'utilisation

+ +

{{svginfo}}

+ +

Attributs

+ +

Attributs globaux

+ + + +

Specific attributes

+ +
    +
  • {{SVGAttr("offset")}}
  • +
  • {{SVGAttr("stop-color")}}
  • +
  • {{SVGAttr("stop-opacity")}}
  • +
+ +

DOM Interface

+ +

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

+ +

Exemple

+ +

SVG

+ +
<svg width="160" height="95" viewBox="0 0 80 40"
+     xmlns="http://www.w3.org/2000/svg">
+
+  <defs>
+    <linearGradient id="MyGradient">
+      <stop offset="5%" stop-color="#F60" />
+      <stop offset="95%" stop-color="#FF6" />
+    </linearGradient>
+  </defs>
+
+  <!-- Contour de la zone de dessin en noir -->
+  <rect fill="none" stroke="black"
+        x="0.5" y="0.5" width="79" height="39"/>
+
+  <!-- Le rectangle est rempli avec un dégradé linéaire -->
+  <rect fill="url(#MyGradient)" stroke="black" stroke-width="1"
+        x="10" y="10" width="60" height="20"/>
+</svg>
+
+ +

Résultat

+ +

{{EmbedLiveSample("Exemple", 160, 95)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('SVG2', 'pservers.html#GradientStops', '<stop>')}}{{Spec2('SVG2')}} 
{{SpecName('SVG1.1', 'pservers.html#GradientStops', '<stop>')}}{{Spec2('SVG1.1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

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

+ +

Voir aussi

+ +
    +
  • {{SVGElement("linearGradient")}}
  • +
  • {{SVGElement("radialGradient")}}
  • +
diff --git a/files/fr/web/svg/element/style/index.html b/files/fr/web/svg/element/style/index.html deleted file mode 100644 index 11454c2331..0000000000 --- a/files/fr/web/svg/element/style/index.html +++ /dev/null @@ -1,92 +0,0 @@ ---- -title: