HTML DOM createLinearGradient() 方法HTML DOM CanvasRenderingContext2D 对象定义和用法createLinearGradient() 方法创建一条线性颜色渐变。语法createLinearGradient(xS