mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 10:00:42 +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:
23
core/test/Shape_Primitives.java
Executable file
23
core/test/Shape_Primitives.java
Executable file
@@ -0,0 +1,23 @@
|
||||
package test;
|
||||
import processing.core.*;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Francis Li
|
||||
*/
|
||||
public class Shape_Primitives extends PMIDlet {
|
||||
void setup() {
|
||||
// Shape Primitives
|
||||
// by REAS <http://www.groupc.net>
|
||||
|
||||
size(200, 200);
|
||||
background(0);
|
||||
noStroke();
|
||||
fill(226);
|
||||
triangle(10, 10, 10, 200, 45, 200);
|
||||
rect(45, 45, 35, 35);
|
||||
quad(105, 10, 120, 10, 120, 200, 80, 200);
|
||||
ellipse(120, 60, 40, 40);
|
||||
triangle(160, 10, 195, 200, 160, 200);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user