update = {
for (const t of oscillator(animationDuration)) {
requestAnimationFrame(renderer.render);
cube.scale.y = scaleAmount * scaling(t);
cube.position.y = translationAmount * yTranslation(t);
cube.rotation.y = rotationAmount * yRotation(t);
const color = new THREE.Color(customInterpolator(coloring(t)));
cube.material.emissive = color;
light.color = color;
cubeWire.visible = wireframe;
floorWire.visible = wireframe;
renderer.render(scene, camera);
yield renderer;
}
}