Skip to content

Function: lightVector() ​

ts
function lightVector(angle?): Vec;

Where light comes from, as a unit vector pointing from the surface towards the light. angle is in degrees clockwise from the top, like CSS angles: 0 from above, 90 from the right, 315 (the default) from the top left.

Parameters ​

ParameterTypeDefault value
anglenumber315

Returns ​

Vec

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