We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be3ef79 commit 62dfb6fCopy full SHA for 62dfb6f
watchfaces/ex1_simple_time/ex1_simple_time.pde
@@ -0,0 +1,16 @@
1
+void setup() {
2
+ fullScreen();
3
+ frameRate(1);
4
+ textFont(createFont("Roboto", 48));
5
+ fill(255);
6
+}
7
+
8
+void draw() {
9
+ background(0);
10
+ translate(0, +insetBottom/2);
11
+ if (!ambientMode) {
12
+ String str = hour() + ":" + minute() + ":" + second();
13
+ float w = textWidth(str);
14
+ text(str, (width - w)/2, height/2 + 24);
15
+ }
16
0 commit comments