SVG(Scalable Vector Graphics)λ₯Ό μ¬μ©νμ¬ κ·ΈλΌλ°μ΄μ (Gradient)μ μ μ©νλ λͺ κ°μ§ μμλ₯Ό μλμ μ μνκ² μ΅λλ€. κ·ΈλΌλ°μ΄μ μ μμμ λΆλλ¬μ΄ μ νμ μμ±νλ λ° μ¬μ©λλ©°, μ , λν, ν μ€νΈ λ± μ¬λ¬ μμμ μ μ©ν μ μμ΅λλ€.
xml<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="linearGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:rgb(255,0,0);stop-opacity:1" />
<stop offset="100%" style="stop-color:rgb(0,0,255);stop-opacity:1" />
</linearGradient>
</defs>
<rect width="200" height="200" fill="url(#linearGradient)" />
</svg>
xml<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient id="radialGradient" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
<stop offset="0%" style="stop-color:rgb(255,0,0);stop-opacity:1" />
<stop offset="100%" style="stop-color:rgb(0,0,255);stop-opacity:1" />
</radialGradient>
</defs>
<circle cx="100" cy="100" r="100" fill="url(#radialGradient)" />
</svg>
xml<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="repeatingGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:rgb(255,0,0);stop-opacity:1" />
<stop offset="50%" style="stop-color:rgb(0,255,0);stop-opacity:1" />
<stop offset="100%" style="stop-color:rgb(0,0,255);stop-opacity:1" />
</linearGradient>
</defs>
<rect width="200" height="200" fill="url(#repeatingGradient)" />
</svg>
μ΄λ¬ν μμλ€μ κ°λ¨ν SVG μ½λλ‘ κ·ΈλΌλ°μ΄μ μ μ¬μ©νλ λ°©λ²μ 보μ¬μ€λλ€. μ ν κ·ΈλΌλ°μ΄μ , μν κ·ΈλΌλ°μ΄μ , κ·Έλ¦¬κ³ λ°λ³΅ κ·ΈλΌλ°μ΄μ μ μ‘°ν©νμ¬ λ λ€μν ν¨κ³Όλ₯Ό λ§λ€ μ μμ΅λλ€. SVG μ½λλ₯Ό ν΅ν΄ μμ, μμΉ, ν¬κΈ° λ±μ μ‘°μ νμ¬ μνλ κ·ΈλΌλ°μ΄μ ν¨κ³Όλ₯Ό μ»μ μ μμ΅λλ€.