I wanna make the transparency changed by the size of the plastic
I first use a remap but it didn’t work very well.
So I used a if statement.
for ( int i=0; i < u.length-nPlastic; i++) { if( pSize[i]<4){ trans[i] = random(100,155);
Just another Web Publishing @ NYU site
I wanna make the transparency changed by the size of the plastic
I first use a remap but it didn’t work very well.
So I used a if statement.
for ( int i=0; i < u.length-nPlastic; i++) { if( pSize[i]<4){ trans[i] = random(100,155);