Last active
September 25, 2016 17:26
-
-
Save stanch/6905f3dfcd50d0587b93b7361ed79830 to your computer and use it in GitHub Desktop.
FingerTreeAnimation using reftree (https://github.com/stanch/reftree)
This file contains hidden or 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
import de.sciss.fingertree.{FingerTree, Measure} | |
import reftree.{Diagram, Utils} | |
import reftree.contrib.FingerTreeInstances._ | |
implicit val measure = Measure.Indexed | |
val trees = Utils.iterate(FingerTree(1), 22)(t ⇒ t :+ (t.measure + 1)) | |
Diagram().renderAnimation("finger", tweakOptions = _.copy( | |
delay = 200, loop = false, onionSkin = 0, diffAccent = true, | |
verticalSpacing = 2, density = 50 | |
))(trees) |
Author
stanch
commented
Sep 25, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment