xxxxxxxxxx
26
//Enter custom text as the value for "content"
//Handy symbols: ↑
let content = 'Custom Text' // Custom text goes between the 'quotes'
let ts = 15
if (content.length > 90) {
let dec = Math.ceil((content.length-90)/15)
ts -= dec
}
let pxPerIn = 96 //guessed at this
function setup() {
createCanvas(2*pxPerIn, 1.25*pxPerIn);
}
function draw() {
background(255);
textWrap(WORD)
textSize(ts)
textStyle(BOLD)
textAlign(CENTER, CENTER)
text(content, 10, height/2, width-20)
}