xxxxxxxxxx
35
//3-Minute Creative Coding
//Scrolling Text
//Carrie Wang
let content = 'EGODEATH ';
let content2 = 'EXPERIENCE THE DEATH OF SELF';
let yStart = 0;
let customFont;
function preload() {
customFont = loadFont('impact.ttf'); //use preload to load the custom font
}
function setup() {
bg = loadImage('plaintexture.png')
createCanvas(1080,1080,WEBGL);
textFont(customFont); //use the custom font for text display
textAlign(CENTER, CENTER); //adjust the anchor point of text alignment to the horizontal and vertical centers
textSize(20); //make the text 20 pixels in size
}
function draw() {
background(255);
// noStroke();
push();
fill(0,0,255,100);
strokeWeight(0.9);
stroke(0,255,200);
// translate(noise(xOff)*100, noise(yOff)*height*0.01, -noise(zOff)*600);
rotateY(millis() / 10000);
sphere(300);
let scale = 1+ sin(frameCount * 0.04) * 3;}