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;
}