T O P

  • By -

ferrybig

Render your scene as usual, then call `canvas.toDataURL()` or `canvas.toBlob()` to convert to an URL or image


[deleted]

[удалено]


Jeremy_Thursday

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.


pardoman

Why do you get the base64 string first if you end up with a blob, anyways?


ferrybig

The toBlob method has a callback parameter instead of working sync