Hello monks,

I'm helping someone out with a visualization project for Klondike solitaire. We're writing all of the logic in Perl, and would like the presentation to follow, but for what we want to do, we really need to animate the movement of the cards. We're talking the simplest of animations, here... move sprites from point A to point B, maybe with a simple easing function.

I don't care much how the animation is presented, as long as it's in a single window or browser page, that is spawned and dynamically driven from the Perl application, that lasts for the lifetime of that application. I.e., given an obviously silly API like move_cards($these_cards, $new_location), the call should block while the display animates the update. If I have to fake the imperative style with event-driven style, I could live with that, I suppose.

Portability isn't a huge concern, as long as it works in Linux.

I haven't come across much in my searching thus far. What would you wise monks suggest?


In reply to Playing card animations by wanna_code_perl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.