A great site of recreational computation, generative art, mathematics, and open source modules.
fladdict » コンピューターに絵画を描かせる はい、面白そうだったのでパクってみました。 フラクタルで画像を描画する - wonderfl build flash online まず画面のピクセルを走査し輝度の標準偏差を取る。標準偏差が閾値以上の場合、その領域は十分に複雑であると判断され、分割される。あとはそれを繰り返して二分木あるいは四分木で分割していけばいい。 アルゴリズム的には上記の引用を愚直にactionscriptにトレースしした感じです。 最適化とか全くしてない、というかわからないです。 そもそも標準偏差ってなんやねん?状態だったのでコチラを参考にしました。 平均と標準偏差 ピクセルを走査して取得したカラーはRGBなのでそこから輝度を取得するために使ったアルゴリズムはコチラです。 いろいろ - flashrod RGBの平均値はR,G,Bにそれぞれ10進数に分
asおかげさまで大好評の 北海道を落とすとどう跳ねるのか? ですが、どのように作ったか、製作過程を紹介することにします。1. 地図の素材を取ってくるまずは地図の素材が必要です。以下のサイトから拝借しました。白地図、世界地図、日本地図が無料pdf や eps 形式の地図データを無料で配布してくれているありがたいサイトです。2. 都道府県ごとに分割する上記の素材は県境もベクター形式で提供されていて大変ありがたかったのですが、島がどの都道府県に属しているかの情報がありませんでした。そこで、Google Maps と見比べながら、島を都道府県ごとに分類していきました。無事、全ての島を分類し終わって、こんな感じになりました。とても地味な作業でした…。3. 都道府県ごとに SVG で出力する次に、Illustrator 内で分類したデータをプログラムで扱える形式にしなければなりません。ここでは XML
Take a look at the finalists, register, and vote! We had a hard time narrowing it down to just 10, so there are 12 finalists for you to choose from! Entry 011: Code - SWF Entry 017: Code - SWF Entry 025: Code - SWF Entry 034: Code - SWF Entry 037: Code - SWF Entry 043: Code - SWF Entry 046: Code - SWF Entry 055: Code - SWF Entry 059: Code - SWF Entry 064: Code - SWF Entry 073: Code - SWF
要素をランダムに並べ替えるFisher-Yatesというアルゴリズムを可視化してみた。 下のウィンドウをマウスクリックすると並び替えの様子がアニメーションされます。 後ろから走査していって、自分より前のどれかと交換していく訳ですね。 計算量はO(n)です。 package{ import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import caurina.transitions.Tweener; [SWF(width="400", height="200",backgroundColor="0xffffff")] public class FisherYates2 extends Sprite{ private var balls:Array = []; priv
Transition Types When using the addTween and addCaller methods, several different transition methods may be used. They're defined by the transition parameter, and each of them define a different easing method. Check the table below for a complete rundown of the available methods. You may also print the table. You need to upgrade your Flash Player This is replaced by the Flash content. Bypass detec
Visit gskinner.com News and views on the world of interactive media from the gskinner team Here’s a simple tech demo showing a 3D music visualizer using the flash player 10’s new 3D APIs, with a rotating sphere that transitions into a disc using GTween. Nothing too complex, but the result is kind of neat, and it is simple enough to serve as a quick entry into using the new APIs if you’re getting s
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く