xxxxxxxxxx
19
let src = "inscribing v[eo]rtices ";
function setup() {
noCanvas();
for (let i = 0; i < src.length; i++) {
let angle = TWO_PI * (i/src.length);
let d = createDiv(src.charAt(i));
d.size(200, 25);
d.style("font-size", "100px");
d.position(windowWidth/2, windowHeight/2);
d.style("text-align", "right");
d.style("transform-origin", "left center");
d.style("transform", "rotate("+angle+"rad)");
}
}
function draw() {
background(220);
}