Canvas on Flashでアニメーション

Flashバックエンドの実装とbugfixもいい感じに進んでます。残すは

  • clip()
  • globalCompositeOperation
  • ShadowAPI
  • TextAPI
  • PixelAPI
    • toDataURL(), getImageData()

な感じです。

アニメーションデモ

今までは派手目なデモの紹介を控えてきましたが、そろそろ頃合なので、幾つかご紹介します。
各デモページの左上(or 左下)にある、[ sl / flash / vml ] ボタンでバックエンドを切り替えられます。

Sphere


http://pigs.sourceforge.jp/blog/20100224/demo/demo8_sphere.htm
# Flashモードで不透明度の処理が変なので、後で直します。

元ネタ


Bugfix

ついったー上でご指摘を受けたバグも修正してます。

http://pigs.sourceforge.jp/blog/20100224/demo/2_4_canvas_arc.htm

http://pigs.sourceforge.jp/blog/20100224/demo/2_7_canvas_combined.htm

@uupaa 既知かもしれませんが demo の 2_7 で matrix effect を二回実行すると以降の描画が崩れますね。

via @mitoma_ryo http://twitter.com/mitoma_ryo/status/9519554155

@mitoma_ryo さん、ご指摘ありがとうございます。