Scalable Vector Graphics (SVG) Question:

Download Job Interview Questions and Answers PDF

What are Gradients in SVG?

SVG Interview Question
SVG Interview Question

Answer:

Smooth transition from color to color is known as gradient.
★ Same element can be applied with several color transitions.
★ The types of gradients are:

1) Linear Gradients: Vertical, horizontal and angular gradients are known as Linear Gradients.
★ The tag <linearGradient> within <defs> tag is used to define linear gradients.
★ Linear Gradients effects from left to right or right to left or in diagonal directions of the object

2) Radial Gradients: The gradients with one color to another color is known as Radial Gradients.
★ Radial Gradients affects the middle part of the image.

Download SVG Interview Questions And Answers PDF

Previous QuestionNext Question
What are filters in SVG?Define VML?