Skip to content

Function: patternShader() ​

ts
function patternShader(source, fragment): string;

Experimental

source (a rect, arc or fill shader) with the pattern code in at its hooks.

Parameters ​

ParameterType
sourcestring
fragmentboolean

Returns ​

string

Released under the MIT License.