Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function update(n: number) {
cube.scale.setScalar(lerp(1.67, 0.95, n / 100));
octahedron.scale.setScalar(lerp(0.83, 1.43, n / 100));
scene.draw();
}
graph.arrange(graph.vertices.map((v, i) => {
return {
x: lerp(from[i].x, to[i].x, q),
y: lerp(from[i].y, to[i].y, q)
};
}));
}, 800);
function update(n: number) {
cube.scale.setScalar(lerp(1.67, 0.95, n / 100));
octahedron.scale.setScalar(lerp(0.83, 1.43, n / 100));
scene.draw();
}
function update(n: number) {
dodecahedron.scale.setScalar(lerp(1.88, 1.48, n / 100));
icosahedron.scale.setScalar(lerp(1.35, 1.7, n / 100));
scene.draw();
}
graph.arrange(graph.vertices.map((v, i) => {
return {
x: lerp(from[i].x, to[i].x, q),
y: lerp(from[i].y, to[i].y, q)
};
}));
}, 800);
function update(n: number) {
dodecahedron.scale.setScalar(lerp(1.88, 1.48, n / 100));
icosahedron.scale.setScalar(lerp(1.35, 1.7, n / 100));
scene.draw();
}