xxxxxxxxxx
24
let f;// being lazy with my naming for font
function preload() {
f = loadFont("https://cdnjs.cloudflare.com/ajax/libs/topcoat/0.8.0/font/SourceCodePro-Bold.otf"
);
}
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
fill(0);
textFont(f, 60);
textAlign(CENTER, CENTER);
text("hello", 0, -100);
text("digital", 0, 0);
colorMode(HSB);
}
function draw() {
fill((millis() / 10) % 255, 255, 255);
let time = millis();
rotateX(time / 1000);
rotateZ(time / 1800);
text("privacy", 0, 100);
}