mirror of
https://github.com/processing/processing4.git
synced 2026-02-10 09:09:26 +01:00
18 lines
291 B
Java
Executable File
18 lines
291 B
Java
Executable File
package test;
|
|
import processing.core.*;
|
|
|
|
/**
|
|
*
|
|
* @author Francis Li
|
|
*/
|
|
public class RandomTest2 extends PMIDlet {
|
|
|
|
void setup() {
|
|
for(int i=0; i<100; i++) {
|
|
int r = random(-50, 50);
|
|
stroke(abs(r*5));
|
|
line(50, i, 50+r, i);
|
|
}
|
|
}
|
|
}
|