wiggleContours
Shift elements of a shape by a random amount.
Here, wiggle shifts the points of a path:
var font = '/static/fonts/FiraSans-Regular.otf';
var p = g.textPath('Hello', {x: 0, y: 0}, font, 90);
g.wiggleContours(p, 4, 42);
Parameters
shape
: The input shape.offset
: The maximum amount of translation, either a point or number.seed
: The random variation.
See Also
- wigglePaths: Randomly shift the paths in a group.
- wigglePoints: Randomly shift the points of the path.