SetBlendTriangularShape

LinearGradientBrush.SetBlendTriangularShape method (1 of 2)

Creates a linear gradient with a center color and a linear falloff to a single color on both ends.

public void SetBlendTriangularShape(float focus)
Parameter Type Description
focus Single A value from 0 through 1 that specifies the center of the gradient (the point where the gradient is composed of only the ending color).

See Also


LinearGradientBrush.SetBlendTriangularShape method (2 of 2)

Creates a linear gradient with a center color and a linear falloff to a single color on both ends.

public void SetBlendTriangularShape(float focus, float scale)
Parameter Type Description
focus Single A value from 0 through 1 that specifies the center of the gradient (the point where the gradient is composed of only the ending color).
scale Single A value from 0 through1 that specifies how fast the colors falloff from the starting color to focus (ending color)

See Also