ChartDirector Ver 3.1 (PHP Edition Edition)

DrawArea.gradientColor


Usage

gradientColor(startX, startY, endX, endY, startColor, endColor)

Description

Create a two-point gradient color.

Arguments

ArgumentDefaultDescription
startX(Mandatory)The x coordinate of the starting point of the gradient line segment.
startY(Mandatory)The y coordinate of the starting point of the gradient line segment.
endX(Mandatory)The x coordinate of the ending point of the gradient line segment.
endY(Mandatory)The y coordinate of the ending point of the gradient line segment.
startColor(Mandatory)The starting color.
endColor(Mandatory)The ending color.

Return Value

Return a 32-bit integer acting as a handle to the gradient color. The handle can be used in any ChartDirector API that expects a color as an argument.