xxxxxxxxxx
59
// 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/
//create a small big effect
let font;
function preload() {
font = loadFont("Identidad-ExtraBold.otf");
}
function setup() {
createCanvas(1080, 1080);
textFont(font);
textSize() ;
}
function draw() {
background(4);
let m = map(mouseX, 20, mouseY, 20, random(255));
blendMode(DIFFERENCE);
fill(50, 168, 82);
textSize(abs(tan(frameCount * 0.01)) * 200);
textAlign(LEFT);
rotate(HALF_PI)
for (let i = 0; i < 50; i++) {
push();
let xx = m + sin(frameCount + i * 200) * 0.02 * 0.5;
let yy = i * 20;
translate(xx, yy);
text("SIGH", 20, height / 20);
pop();
}
textSize(14); // textSize sets the size of the text
textAlign(RIGHT); // textAlign aligns the text to the LEFT, CENTER or RIGHT
textLeading(20); // 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);
}