LinearGradientBrush Constructor

Syntax

PP.LinearGradientBrush(settings)

Parameters

settings. JSON object that contains properties of class instance.

Description

The LinearGradientBrush constructor creates an instance of the LinearGradientBrush class.

Example

To execute the example the HTML page must contain the MapChart component named map (see Placing of Map on a HTML Page). Set a gradient fill as the map background:

        map.setBackground(new PP.LinearGradientBrush({
           EndPoint : "1, 1",
           StartPoint : "0, 0",
           GradientStops:
            {
              "GradientStop":
               [
                  {"Offset" : "0","Color" : "#ffdd00cc"},
                  {"Offset" : "1","Color" : "#ffaaffcc"}
               ]
            }
       }))

After executing the example the following background is set for the map:

See also:

LinearGradientBrush