1,295
edits
Line 164: | Line 164: | ||
==== Dynamic graph changes ==== | ==== Dynamic graph changes ==== | ||
Dynamic graph changes performed by a script take effect atomically after the script has run to completion. Effectively we post a task to the HTML event loop that makes all the pending changes. The exact timing is up to the implementation but the implementation should try to minimize the latency of changes. | Dynamic graph changes performed by a script take effect atomically after the script has run to completion. Effectively we post a task to the HTML event loop that makes all the pending changes. The exact timing is up to the implementation but the implementation should try to minimize the latency of changes. | ||
==== Canvas Recording ==== | |||
To enable video synthesis and some easy kinds of video effects we can record the contents of a canvas: | |||
interface HTMLCanvasElement { | |||
Stream createStream(); | |||
}; | |||
'createStream' produces a stream containing the "live" contents of the canvas as video frames, and no audio. | |||
==== Examples ==== | ==== Examples ==== |
edits