Skip to content
This repository was archived by the owner on Dec 20, 2022. It is now read-only.

Latest commit

 

History

History
21 lines (13 loc) · 316 Bytes

File metadata and controls

21 lines (13 loc) · 316 Bytes

fromAnimationFrame

function fromAnimationFrame(): IObservable<void>

Creates an Observable that emits void every animation frame.

Examples

Use it to draw something

const subscribe = fromAnimationFrame();

const unsubscribe = subscribe(() => {
  // draw something on a canvas
})