mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 17:40:48 +01:00
Core files, plus some test files (note that test files may not compile due to recent changes to the core)
This commit is contained in:
17
core/test/RandomTest2.java
Executable file
17
core/test/RandomTest2.java
Executable file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user