我正试图用特别志愿人员小组的分子制造一只arrow子:
这是我的尝试:
由于你可以看到梯度同时适用于rect &我在SVG中采用了多角。 Is there a way toplica the gradient effect in the first fact in my SVG?
是否可能有特别安全局这样做? Maybe I HAVE to use a path or one polygon elements to establish the arrow than a rect & polygon?
<svg width="424" height="100">
<defs>
<radialGradient id="grad1" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
<stop offset="0%" style="stop-color:rgb(255,255,255); stop-opacity:0" />
<stop offset="100%" style="stop-color:rgb(13,20,93); stop-opacity:1" />
</radialGradient>
</defs>
<rect x="0" y="25" rx="0" ry="0" width="212" height="50" fill="url(#grad1)"> </rect>
<polygon points="212,0 212,100 424,50" fill="url(#grad1)"></polygon>
</svg>