Skip to main content
Version: Streamsheets 2.4

FILLLINEARGRADIENT

Create linear gradient description from the given arguments.

Syntax

FILLLINEARGRADIENT(StartColor, EndColor, Angle)

Arguments

NameDescription
StartColorHexadecimal color value for color at the beginning of the gradient.
EndColorHexadecimal color value for color at the end of the gradient.
AngleOptional. Angle in radians Angle for gradient.

Return Value

JSON String, which defines the fill format and can be used in drawing functions.

Example

FunctionResultComment
FILLLINEARGRADIENT("#000000", "#FFFFFF", PI() / 3)Draw a linear gradient with an angle of 60 degrees.