xxxxxxxxxx
27
let font;
let pg;
function preload(){
font=loadFont("PragmaticaMedium.otf");
}
function setup() {
createCanvas(400, 400,WEBGL);
background(220);
pg = createGraphics(100, 100);
pg.textFont(font);
pg.textSize(30);
pg.text('BILLY', pg.width/2-30, pg.height/2);
}
function draw() {
background(220);
noStroke();
rotateX(sin(frameCount*0.07));
rotateY(sin(frameCount*0.07));
texture(pg);
torus(100,50, 150, 150);
}