标题:
微信小程序API 绘图setStrokeStyle(设置线条样式)
[打印本页]
作者:
vicky.yu
时间:
3 天前 09:55
标题:
微信小程序API 绘图setStrokeStyle(设置线条样式)
canvasContext.setStrokeStyle
定义
设置边框颜色。
Tip: 如果没有设置fillStyle,默认颜色为black。
参数
参数 类型 定义
color Color Gradient Object 填充色
例子
const ctx = wx.createCanvasContext('myCanvas')
ctx.setStrokeStyle('red')
ctx.strokeRect(10, 10, 150, 75)
ctx.draw()
微信小程序 canvas接口和方法绘图接口和方法
欢迎光临 赛捷软件论坛 (http://sagesoft.cn/BBS/)
Powered by Discuz! 7.2