--- 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](/fr/docs/Web/SVG) **``** 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 de base](/fr/docs/Web/SVG/Attribute#Attributs_de_base) ### 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 ```html ``` ### Résultat {{EmbedLiveSample("Exemple", 200, 200)}} ## Spécifications | Spécification | Statut | Commentaire | | ------------------------------------------------------------------------------------------------------------ | -------------------------------- | ------------------- | | {{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](/fr/docs/Web/SVG/Tutoriel/filtres)