请马上登录,朋友们都在花潮里等着你哦:)
您需要 登录 才可以下载或查看,没有账号?立即注册
x
<svg id="msvg" width="800" height="400" viewBox="-200 -100 400 200"></svg>
<script type="module">
import Dr from 'https://638183.freep.cn/638183/svgdr/svgdr.mod.min.js';
var dr = Dr.dr('msvg');
const txt = '月是故乡明';
const path = 'M-150 92 A150 150 0 0 1 150 92';
dr.setsvg({style: 'background: #333;'});
dr.defs('defs');
dr.path(path, 'none', 'olive').id('tpath').addTo('defs');
dr.text(txt)
.style(`
font: bold 50px sans-serif;
fill: #fdb813;
stroke: #daa520;
stroke-width: 1;
text-anchor: middle;
dominant-baseline: middle;
`)
.sets({
textLength: 400,
lengthAdjust: 'spacing'
})
.textPath('tpath', '50%');
dr.circle(0, 40, 50, '#fdb813');
</script>
|