Linear

constructor(colors: IntArray, positions: FloatArray, angle: Float, startPoint: PointF? = null, endPoint: PointF? = null)

Parameters

colors

цвета

positions

точки остановки цветов

angle

угол направления градиента (как в Figma)