generateCrownSvg function
dynamic
generateCrownSvg(
- dynamic borderColor,
- dynamic fillColor,
- dynamic opacity
Implementation
generateCrownSvg(borderColor,fillColor,opacity){
return '<svg width="16" height="16" viewBox="0 0 44 39"><g fill="${fillColor}" opacity="${opacity}" stroke-width="2.5" stroke="${borderColor}" transform="translate(1 2)"><circle cx="3.5" cy="7.583" r="2.625"/><circle cx="38.5" cy="7.73" r="2.625"/><path d="M7 35h28M7 29.75 3.418 10.199S5.25 19.25 12.25 19.25C19.25 19.25 21 7 21 7s1.75 12.25 8.75 12.25 8.832-8.913 8.832-8.913L35 29.75H7z"/><circle cx="21" cy="3.5" r="3.5"/></g></svg>';
}