/// import { GIFAnimation } from "./animation/gif.ts"; import { SpriteAnimation } from "./animation/sprite.ts"; import { initializeDoodler, Vector } from "./mod.ts"; import { handleGIF } from "./processing/gif.ts"; import { ZoomableDoodler } from "./zoomableCanvas.ts"; initializeDoodler( { width: 400, height: 400, framerate: 90, }, true, (ctx) => { ctx.imageSmoothingEnabled = false; }, ); const img = new Image(); img.src = "./pixel fire.gif"; const p = new Vector(); const gif = new GIFAnimation("./fire-joypixels.gif", p, .5); doodler.createLayer((c, i, t) => { gif.draw(t); // c.drawImage(img, 0, 0); }); requestAnimationFrame;