mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
23 lines
983 B
XML
23 lines
983 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Adapted from
|
|
https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Patterns under
|
|
CC0 / Public Domain Licensing -->
|
|
<svg width="200" height="150" xmlns="http://www.w3.org/2000/svg">
|
|
<defs>
|
|
<linearGradient id="Gradient1">
|
|
<stop offset="5%" stop-color="white"/>
|
|
<stop offset="95%" stop-color="blue"/>
|
|
</linearGradient>
|
|
<linearGradient id="Gradient2" x1="0" x2="0" y1="0" y2="1">
|
|
<stop offset="5%" stop-color="red"/>
|
|
<stop offset="95%" stop-color="orange"/>
|
|
</linearGradient>
|
|
<pattern id="Pattern" x="40" y="10" width="50" height="50" patternUnits="userSpaceOnUse">
|
|
<rect x="0" y="0" width="50" height="50" fill="skyblue"/>
|
|
<rect x="0" y="0" width="25" height="25" fill="url(#Gradient2)"/>
|
|
<circle cx="25" cy="25" r="20" fill="url(#Gradient1)" fill-opacity="0.5"/>
|
|
</pattern>
|
|
</defs>
|
|
<rect fill="url(#Pattern)" stroke="black" width="200" height="150"/>
|
|
</svg>
|