参数讲解 /** Create a shader that draws a linear gradient along a line. 创建一个shader绘制一条线param x0 The x-coordinate for the start of the gradient line 开始坐标xparam y0 The y-coordinate for the start of the gradient line 开始…
LinearGradient我们可以将之译为线型渐变、线型渲染等,译成什么不重要,重要的是它的显示效果是什么样子,今天我们就一起来看看。
先来看看LinearGradient的构造方法: /** Create a shader that draws a linear gradient along a …