xxxxxxxxxx
64
// for this example we use Krona One by by Yvonne Schüttler
// https://fonts.google.com/specimen/Krona+One
// check the Sketch Files and the additional file
// KronaOne-Regular.ttf
//
// see the following WEBGL type example.
// https://editor.p5js.org/sojamo/sketches/mvEZEFfB6
// for more details about how to handle fonts and text,
// do check the reference under Typography
// https://p5js.org/reference/
let font;
function preload() {
font = loadFont("Gruppo-Regular.ttf");
}
function setup() {
createCanvas(540, 540);
textFont(font);
}
function draw() {
background(0);
// rotate(PI / 0);
for(let i=0;i<100;i++) {
push();
let angle = radians(270);
translate(i*100,height);
fill(255);
rotate(angle);
rotate(sin(i*frameCount)*0.04);
textSize(150);
textAlign(LEFT);
textStyle(BOLD);
text("CLINK!", 10, 10);
// ellipse(x,y,0,20+sin((frameCount+i)*0.01)*100);
pop();
}
textSize(20); // textSize sets the size of the text
textAlign(LEFT); // textAlign aligns the text to the LEFT, CENTER or RIGHT
textLeading(18); // textLeading adjusts the spacing between lines.
// let txt = "Here, “remixing” – an established term in the music domain – is very often used to describe the phenomenon of repurposing existing materials to create something new."
// text(txt, 20, height / 3, width/2, height/2);
}