first commit

This commit is contained in:
Christian Lawson-Perfect 2025-02-09 20:33:33 +00:00
commit 9e4d936a96
9 changed files with 4864 additions and 0 deletions

11
animate.js Normal file
View file

@ -0,0 +1,11 @@
const drawing = editor.drawing;
const duration = 10;
const fps = 5;
const frames = [];
for(let frame = 0; frame < duration*fps; frame++) {
const t = frame/fps;
drawing.ctx.get_time = () => t;
drawing.ctx.draw();
frames.push(drawing.html);
}
console.log(frames.join('\n\n<<FRAME SEPARATOR>>\n\n'))