Breaking News

SVG Linear Gradient: < lineargradient > element

SVG Linear Gradient: < lineargradient > element

The SVG <lineargradient> element is used to represents the linear gradient to be used as fill .The attributes (x1, y1) and (x2, y2) represents the start and end points of the gradient. The attributes offset andstopcolor represents the color at each offset point.

Here is a simple example of SVG Linear Gradient element.

Code

Fig17

 

Output

 

Fig18

Check Also

Applying Borders by Using Styles

Applying Borders by Using Styles InHTML5 You can also apply borders by using cascading style …