renderFrame = function (ctx, t) {
ctx.fillStyle = "black";
ctx.fillRect(0, 0, size + sidePadding * 2, size);
ctx.beginPath();
ctx.ellipse(size / 2 + sidePadding, size / 2, 20, 20, 0, 0, Math.PI * 2);
ctx.fillStyle = colours.sun;
ctx.fill();
[
"Donaldjohanson",
"Eurybates",
"Leucus",
"Orus",
"Patroclus",
"Polymele"
].map((k) => drawObject(ctx, k, colours.asteroids, 6, t));
drawObject(ctx, "Earth", colours.earth, 8, t);
drawObject(ctx, "Jupiter", colours.jupiter, 12, t);
drawObject(ctx, "Lucy", colours.lucy, 4, t);
ctx.fillStyle = "white";
const fontSize = 28;
ctx.font = `${fontSize * 2}px Econ Sans, Source Serif Pro`;
ctx.textAlign = "end";
ctx.fillText(
timeFmt(objects.get("Earth")[t].date),
size + sidePadding * 2 - 50,
fontSize * 2
);
}