Skip to content

Instantly share code, notes, and snippets.

@irrationnelle
Created December 12, 2018 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irrationnelle/9e6da1a690df64e54d369867ca667dba to your computer and use it in GitHub Desktop.
Save irrationnelle/9e6da1a690df64e54d369867ca667dba to your computer and use it in GitHub Desktop.
this.lines$.pipe(
filter(Boolean),
sample(this.frameControl$),
startWith([]),
pairwise()
)
.subscribe(([prev, next]) => {
this.canvasRender.drawDiff(prev, next);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment