mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 01:29:17 +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:
19
core/test/SecondTest.java
Executable file
19
core/test/SecondTest.java
Executable file
@@ -0,0 +1,19 @@
|
||||
package test;
|
||||
import processing.core.*;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Francis Li
|
||||
*/
|
||||
public class SecondTest extends PMIDlet {
|
||||
|
||||
public void draw() {
|
||||
background(204);
|
||||
int s = second(); // Values from 0 - 59
|
||||
int m = minute(); // Values from 0 - 59
|
||||
int h = hour(); // Values from 0 - 23
|
||||
line(s, 0, s, 33);
|
||||
line(m, 33, m, 66);
|
||||
line(h, 66, h, 100);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user