Skip to content

Interface: GradientOptions ​

Properties ​

angle? ​

ts
optional angle?: number;

Direction of a linear gradient in degrees: 0 runs left to right, 90 top to bottom (y grows downward). Defaults to 0.


shape? ​

ts
optional shape?: "linear" | "radial";

"radial" runs from the region's center (first stop) out to its corners (last stop).

Hat tiling and isohedral tilings after Craig S. Kaplan's hatviz and Tactile (BSD 3-Clause).