-
Notifications
You must be signed in to change notification settings - Fork 0
/
sketch.js
34 lines (30 loc) · 879 Bytes
/
sketch.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var font;
var clock;
var sampleFactor = 0.15;
function preload() {
// font = loadFont("fonts/AvenirNextLTPro-Demi.otf");
// font = loadFont("fonts/SpicyRice-Regular.ttf");
// font = loadFont("fonts/PatrickHand-Regular.ttf");
// font = loadFont("fonts/ArchivoBlack-Regular.ttf");
font = loadFont("fonts/BreeSerif-Regular.ttf");
// font = loadFont("fonts/FredokaOne-Regular.ttf");
// font = loadFont("fonts/Rokkitt-Black.ttf");
// font = loadFont("fonts/Rokkitt-Bold.ttf");
}
function setup() {
var canvas = createCanvas(900, 180);
canvas.parent("canvas-parent");
background(153, 0, 102);
colorMode(HSB);
textAlign(LEFT, TOP);
clock = new Clock();
clock.init();
}
function draw() {
colorMode(RGB);
// background(153, 0, 102);
background(0);
colorMode(HSB);
clock.update();
clock.show();
}