Created
December 12, 2018 14:00
-
-
Save irrationnelle/9e6da1a690df64e54d369867ca667dba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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