目录
当前位置: 首页 > 文档资料 > ZRender 中文文档 >

zrender.Gradient.addColorStop(offset, color)

优质
小牛编辑
114浏览
2023-12-01

增加渐变色。

参数

名称类型默认值描述
offsetnumber渐变位置。
colorstring颜色。

如果想要清除渐变色,可以使用 this.colorStops = []