proce55ing プログラミングアート全般at TECH
proce55ing プログラミングアート全般 - 暇つぶし2ch292:デフォルトの名無しさん
09/03/24 17:13:58 .net
マウスから遠いフォント名ほど色あせるスケッチを書いたつもりなんですが、
もっと遠いところと近いところの彩度の差をはっきりさせるには
どうすればいいですか?

PFont currentFontFace;
String currentFontFaceName;
String total, currentFont;
String[] fontList = PFont.list();
float[] fontX = new float[fontList.length];
float[] fontY = new float[fontList.length];
int[] fontAlpha = new int[fontList.length];
int[] fontSpeed = new int[fontList.length];

void setup() {
size( 800, 600 );
frameRate( 60 );
colorMode( HSB );
currentFontFace = createFont( fontList[0], 16, true);
textFont( currentFontFace );
currentFontFaceName = fontList[0];
for( int i = 0; i < fontList.length; i++ ) {
fontX[i] = random( -50, 800 );
fontY[i] = random( 600 );
fontAlpha[i] = int( random( 255 ) );
fontSpeed[i] = int( random( 5 ) );
}
total = "Total :" + nfs( fontList.length, 3 );
currentFont = "Current font : " + currentFontFaceName;
}



次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch