Last active
January 17, 2020 11:02
-
-
Save paramaggarwal/7fa96ec22d1ff9a14feda61b46cf9a27 to your computer and use it in GitHub Desktop.
Energy Meter Dashed Gradient Progress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<svg | |
xmlns="http://www.w3.org/2000/svg" width="600" height="100" > | |
<defs> | |
<linearGradient id="gradient" gradientUnits="userSpaceOnUse">> | |
<stop offset="0%" stop-color="#54c727" /> | |
<stop offset="25%" stop-color="#a9bf46" /> | |
<stop offset="50%" stop-color="#eccc42" /> | |
<stop offset="75%" stop-color="#ba3838" /> | |
</linearGradient> | |
<clipPath id="clip"> | |
<rect | |
x="80%" | |
y="0%" | |
width="100%" | |
height="100%" /> | |
</clipPath> | |
</defs> | |
<rect fill="black" width="100%" height="100%" /> | |
<line x1="0" y1="0" x2="100%" y2="0" stroke="url(#gradient)" stroke-width="100%" stroke-dasharray="8 8" /> | |
<line x1="0" y1="0" x2="100%" y2="0" clip-path="url(#clip)" stroke="grey" stroke-width="100%" stroke-dasharray="8 8" /> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment