Skip to content

Instantly share code, notes, and snippets.

@stanch
Last active September 25, 2016 17:26
Show Gist options
  • Save stanch/6905f3dfcd50d0587b93b7361ed79830 to your computer and use it in GitHub Desktop.
Save stanch/6905f3dfcd50d0587b93b7361ed79830 to your computer and use it in GitHub Desktop.
FingerTreeAnimation using reftree (https://github.com/stanch/reftree)
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)
@stanch
Copy link
Author

stanch commented Sep 25, 2016

finger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment