FC2JRANKbloogranQ 人気blogランキング


PixelText variation (5)

2007/10/01 21:00| カテゴリー:tweener

  1. Main.as のクラスプロパティ scale:uint
  2. Pixelize.as の createPositions メソッド内、new AqLetter() の第2引数であるオブジェクト { font:String , size:uint }


// ピクセル化する文字列
var aqLetter:AqLetter = new AqLetter(
 null ,
 { font:"_serif",size:30 }
);
aqLetter.text = dispStr;

font

size

for ( var cntx:int=0; cntx<w; cntx++ ) {
 for ( var cnty:int=0; cnty<h; cnty++ ) {
  // ピクセル ARGB 取得
  argb = bmd.getPixel32( cntx , cnty );
  // 各セルの座標計算
  if ( ((argb>>24)&0xFF) != 0 ) {
   posx = ( cntx + 0.5 ) * scale + offsetx;
   posy = ( cnty + 0.5 ) * scale + offsety;
   pos_array.push( { posx:posx , posy:posy } );
  }
 }
}

各サンプルの変数値比較
scalefontsize
最初のサンプル16"_sans"16
2番目のサンプル12"_serif"20
3番目のサンプル8"_serif"30
最後のサンプル4"_typewriter"60

にほんブログ村 IT技術ブログへ

タグ: tweener MotionTypo | トラックバック(0)コメント(0)
このエントリーを含むはてなブックマーク


コメント

コメントの投稿














管理者にだけ表示を許可する

トラックバック

この記事のトラックバックURL:http://aquioux.blog48.fc2.com/tb.php/277-0a10be94