Tempel kode, atur resolusi & FPS, lalu unduh video. Frame-per-frame — deterministik, tanpa upload, tanpa akun.
window.draw(t)
t
window.dur
<canvas>
width
height
requestAnimationFrame
setInterval
async
await
Promise
cdnjs
jsdelivr
preserveDrawingBuffer: true
<canvas id="c" width="720" height="1280"></canvas> <script> const ctx = document.getElementById('c').getContext('2d'); window.dur = 5; window.draw = (t) => { ctx.fillStyle = '#101828'; ctx.fillRect(0, 0, 720, 1280); ctx.fillStyle = '#ffd23f'; ctx.beginPath(); ctx.arc(360 + Math.sin(t*2)*200, 640, 80, 0, Math.PI*2); ctx.fill(); }; </script>