Optional Readonlydirection?: GradientDirectionWhich way the ramp runs. Absent is top to bottom.
Readonlytype: "linear"Selects the linear geometry: a ramp along a straight line.
Optional Readonlyat?: GradientCenterThe centre it spreads from. Absent is the middle of the box.
Readonlytype: "radial"Selects the radial geometry: a ramp outward from a point.
Optional Readonlyat?: GradientCenterThe point it sweeps around. Absent is the middle of the box.
Optional Readonlyfrom?: numberWhere the sweep begins, in degrees clockwise from twelve o'clock.
Readonlytype: "conic"Selects the conic geometry: a ramp swept around a point.
A gradient, as a fill or as the alpha of a Mask.
One kind per geometry, and each carries only what it reads: a radial gradient has no direction and a linear one has no centre, so neither can be given a value nothing looks at.