xxxxxxxxxx
33
/*
* @name Words
* @description The text() function is used for writing words to the screen.
* The words can be aligned left, center, or right with the textAlign()
* function, and like with shapes, words can be colored with fill().
*/
let font,
fontsize = 40;
//function preload() {
// Ensure the .ttf or .otf font stored in the assets directory
// is loaded before setup() and draw() are called
//font = loadFont('https://www.1001fonts.com/a-sensible-armadillo-font.html');
//}
function setup() {
createCanvas(600, 300);
// Set text characteristics
textFont("Georgia");
textSize(fontsize);
textAlign(CENTER, CENTER);
}
function draw() {
background(255);
fill(0);
text('μεγαλώνουμε μαζί', mouseX, mouseY);
}