class GradientDirection

The available directions for a background gradient fade effect.

Learn more: Content aware padding

Methods

horizontal()

Blend the colors horizontally.

vertical()

Blend the colors vertically.

diagonalDesc()

Blend the colors diagonally from top-left to bottom-right.

diagonalAsc()

Blend the colors diagonally from bottom-left to top-right.

Details

static string horizontal()

Blend the colors horizontally.

Return Value

string

static string vertical()

Blend the colors vertically.

Return Value

string

static string diagonalDesc()

Blend the colors diagonally from top-left to bottom-right.

Return Value

string

static string diagonalAsc()

Blend the colors diagonally from bottom-left to top-right.

Return Value

string

Constants

HORIZONTAL

Blend the colors horizontally.

VERTICAL

Blend the colors vertically.

DIAGONAL_DESC

Blend the colors diagonally from top-left to bottom-right.

DIAGONAL_ASC

Blend the colors diagonally from bottom-left to top-right.