div-linear-gradient

Linear gradient.

Parameters

Parameters Description
type

string

Required parameter.

The value must always be gradient.

angle

int

Angle of gradient direction.

Restriction for the value x: x >= 0 && x <= 360.

Default value: 0.

color_map

array

Colors and positions of gradient points. When using this parameter, the colors parameter is ignored.

The minimum number of elements is 2.

Available platforms: Android, iOS, web.

colors

array

Colors. Gradient points are located at an equal distance from each other.

The minimum number of elements is 2.

color_point

Parameters Description
color

string

Required parameter.

Gradient color corresponding to gradient point.

Valid formats: #RGB, #ARGB, #RRGGBB, #AARRGGBB.

position

number

Required parameter.

The position of the gradient point.

Restriction for the value x: x >= 0.0 && x <= 1.0.

JSON
{
  type*: "gradient",
  angle: "int",
  color_map: [
    {
      color*: "string",
      position*: "number"
    },
    ...
  ],
  colors: [ "string", ... ]
}