xxxxxxxxxx
35
let font
let fSize // font size
let msg // text to write
let pts = [] // store path data
function preload() {
font = loadFont('TiltWarp.ttf')
}
function setup() {
createCanvas(1080, 1080)
background("rgb(145,142,140)")
fill(0)
stroke(1)
strokeWeight(2)
textAlign(CENTER)
textStyle(BOLD)
}
function draw() {
for (let i = 0; i < 1; i += 0.11) {
push()
let x = width / 2 + 50 * sin(frameCount / 10 + i)
let y = 120 + 970 * i
let size = 150
textSize(size)
translate(x, y)
fill("rgb(219,195,4)");
scale(2 + 1 * sin(frameCount / 12 + i))
text("SLINKY", 0, 0)
pop()
}
}