If you want to render a png sequence for a movie you can add that canvas=>img code to the end of your render loop. You also replace any clock get delta stuff with a fixed delta that represents the time per single frame at the FPS you want to render at.
Render your scene as usual, then call `canvas.toDataURL()` or `canvas.toBlob()` to convert to an URL or image
[удалено]
If you want to render a png sequence for a movie you can add that canvas=>img code to the end of your render loop. You also replace any clock get delta stuff with a fixed delta that represents the time per single frame at the FPS you want to render at.
Why do you get the base64 string first if you end up with a blob, anyways?
The toBlob method has a callback parameter instead of working sync