将画笔上下文对象的fillStyle或strokeStyle属性设置为一个CanvasGradient对象,就可以实现颜色渐变效果。 Canvas支持两种渐变方式:一种是线性渐变(Linear Gradient),另 ...
確定! 回上一頁