Created
November 10, 2020 09:04
-
-
Save drott/49f9a95f2f5b31dd275c191eb12d39db to your computer and use it in GitHub Desktop.
Radial Gradient under horizontal transform
This file contains hidden or 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
<svg viewBox="-301 -206 802 431" xmlns="http://www.w3.org/2000/svg" | |
xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<style> | |
.label { font: 64px sans-serif; stroke-width: 0; stroke: black; fill: #1a2127; } | |
</style> | |
<defs> | |
<radialGradient id="radgrad-pad" | |
gradientUnits="userSpaceOnUse" | |
fx="-5000" fy="0" fr="120" | |
cx="10000" cy="0" r="130" | |
spreadMethod="pad"> | |
<stop offset="0%" stop-color="#DA0025"/> | |
<stop offset="50%" stop-color="#FFC600"/> | |
<stop offset="100%" stop-color="#0052AB"/> | |
</radialGradient> | |
<rect id="filled-rect" x="-300000" y="-200000" width="800000" height="400000" stroke-width="2" stroke="gray"/> | |
</defs> | |
<g transform="scale(0.001 1)" class="spreadmethod-repeat"> | |
<use href="#filled-rect" fill="url(#radgrad-pad)"/> | |
</g> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment