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.
Stops that are not opaque mix as a browser mixes them. As a node's
gradientor amask, that is CSS's way, with the alpha multiplied in, so a stop at alpha 0 adds no colour and'#101014'to'transparent'fades without darkening. As aPath'sfillorstroke, it is SVG's way, straight, so a stop at alpha 0 keeps its own colour and'transparent'is a transparent black.