radial_gradient_focal.svg 459 B

12345678910111213
  1. <svg viewBox="0 0 150 150" xmlns="http://www.w3.org/2000/svg">
  2. <defs>
  3. <radialGradient id="radial"
  4. cx="50%" cy="50%" fx="50%" fy="15%" r="50%">
  5. <stop offset="0%" style="stop-color: red;"/>
  6. <stop offset="50%" style="stop-color: green;"/>
  7. <stop offset="100%" style="stop-color: blue;"/>
  8. </radialGradient>
  9. </defs>
  10. <rect x="10" y="10" width="120" height="120"
  11. style="fill: url(#radial); stroke: black;"/>
  12. </svg>