fePointLight applied to an image | SVG | HTML

<?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 viewBox = "0 0 200 133" width="200px" height="133px" version = "1.1"> <desc> fePointLight applied to an image </desc> <filter id = "i1"> <feGaussianBlur in = "SourceAlpha" stdDeviation = "20" result = "blur1"/> <feSpecularLighting result = "specOut" in = "blur1" specularExponent = "20" lighting-color = "#ccc"> <fePointLight x = "0" y = "0" z = "100"/> </feSpecularLighting> <feComposite in = "SourceGraphic" in2 = "specOut" operator = "arithmetic" k1 = "0" k2 = "1" k3 = "1" k4 = "0"/> </filter> <g filter = "url(#i1)"> <image x="0" y="0" id="svg-image" width="200" height="133px" xlink:href="http://icdn1.digitaltrends.com/image/google-logo-feature-1030x686.jpg" /> </g> </svg> <img src="http://icdn1.digitaltrends.com/image/google-logo-feature-1030x686.jpg" alt="Original image" width="200px" height="133px">
fePointLight applied to image. jsFiddle example: https://jsfiddle.net/y2v5qm1p/.

fePointLight - a specific point as the main light source when applying the feSpecularLighting.

x, y, and z attributes determine the location of the light source.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.