xxxxxxxxxx
21
function preload() {
myFont = loadFont('RubikMonoOne-Regular.ttf');
}
function setup() {
createCanvas(400, 400, WEBGL);
describe('a white box rotating in 3D space');
textFont(myFont);
}
function draw() {
background(200);
text('welcome to nasa',30,170)
rotateX(frameCount * 0.01);
rotateY(frameCount * 0.01);
box(150);
}