flash on 2010-8-5
♥0 |
Line 22 |
Modified 2010-08-05 17:54:10 |
MIT License
archived:2017-03-20 17:26:39
ActionScript3 source code
/**
* Copyright hig_an ( http://wonderfl.net/user/hig_an )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/rbfM
*/
package {
import frocessing.display.F5MovieClip2DBmp;
public class NoiseSample extends F5MovieClip2DBmp {
public function NoiseSample() {
var xi:int , yi:int;
for (xi = 0; xi < 300; xi++) {
for (yi = 0; yi < 300; yi++) {
stroke(random(255));
point(xi, yi);
}
}
var seed:uint = 100;
noiseSeed(seed);
for (xi = 0; xi < 300; xi++) {
for (yi = 0; yi < 300; yi++) {
stroke(noise(xi / 100, yi / 100) * 255);
point(300 + xi, yi);
}
}
}
}
}