Canvas 渐变
HTML canvas fillText() 方法var c=document.getElementById("myCanvas");var ctx=c.getContext("2d");ctx.font="20px Georgia";ctx.fillText("Hello World!",10,50);ctx.font="30px Verdana";// Create gradientvar gradient=ctx.createLinearGradient(0,0,c.width,0)
原创
2021-04-27 15:44:36 ·
100 阅读 ·
0 评论