combomash / engine

TypeScript Algorithmic Media Engine
https://www.npmjs.com/package/@combomash/engine
ISC License
0 stars 0 forks source link

emit done #20

Closed owmo-dev closed 2 months ago

owmo-dev commented 2 months ago

When rendering frames, the Engine should emit a "done" message that a render queue manager could watch in order to know when to grab a snapshot of the canvas (or in the future, call exposed functions from the Engine for downloading media / info).

owmo-dev commented 2 months ago

While I'm here, put a 'seed' into the Engine's Configuration. If it's not provided by the Configuration it should simply make a hash string to be used as the seed. Apps can use this seed in a Random class if they choose.