array of interlaced x and y coordinates of vertices
const { circleCloudShapes } = Fig.morph;
const cloud1 = circleCloudShapes({
num: 2000,
radius: 2,
});
const cloud2 = circleCloudShapes({
num: 2000,
radius: 0.5,
});
const m = figure.add({
make: 'morph',
points: [cloud1, cloud2],
color: [1, 0, 0, 1],
});
m.animations.new()
.morph({ start: 0, target: 1, duration: 2 })
.start();
Generate random points within a circle.