createLinearGradient 方法

CanvasGradient createLinearGradient(
  1. num x0,
  2. num y0,
  3. num x1,
  4. num y1
)

实现方式

CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native;