[Haskell-cafe] diagrams

Joachim Breitner mail at joachim-breitner.de
Fri Jun 20 20:30:29 UTC 2014


Am Mittwoch, den 18.06.2014, 23:44 -0400 schrieb Anthony Cowley:

> > I have no doubt that diagrams can make the diagrams themselves. What
> > I wonder about is the animation capabilities---ability to have
> > elements move or cross-fade (dissolve), in particular.

I very recently created this animation with diagrams, which does move
and fade stuff:

But the ride was not as smooth as it should have been. See
https://gist.github.com/nomeata/cde96a2e693a23cca8ee for the code. The
function positionSpec contains a “script”, i.e. a sequence of animated
modifications to the image, using lenses to position the change.

I guess with the right combinators, this can be greatly simplified, but
it is hard to come up with the right combinators. Especially as our code
is one-dimensional, and we want to compose in three dimensions (x, y and


Joachim “nomeata” Breitner
  mail at joachim-breitner.dehttp://www.joachim-breitner.de/
  Jabber: nomeata at joachim-breitner.de  • GPG-Key: 0xF0FBF51F
  Debian Developer: nomeata at debian.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140620/b8c74f22/attachment.sig>

More information about the Haskell-Cafe mailing list