Sorry, I'm Not Sorry
ArrayOfOneNumberOfBarsToWhichAreCreatedPictureOfTheObjectInUseObjectFileOfStupidlySmallBirbIndexOfLoopIndexOfIdlenessFunctionOfNoFunctionOfNoClass
let ArrayOfOne = []
let NumberOfBarsToWhichAreCreated=10;//LOL - you thought there'd be 10!
let PictureOfTheObjectInUse;
let ObjectFileOfStupidlySmallBirb;//take note: make your objects bigger or they turn to crap when you zip them. This little birbs wings get torn off
function preload() {//because postLoad doesn't work
ObjectFileOfStupidlySmallBirb = loadModel("/assets/borb.obj");
PictureOfTheObjectInUse = loadImage("/assets/Screen%20Shot%202022-01-22%20at%205.10.10%20PM.png")
ArrayOfOne.push(new OfNoClass());
}
function setup(){
createCanvas(windowWidth,windowHeight,WEBGL);//This is the canvas I make for the purpose of normal texture eye pain
TheColorOfBatman=1
}
function draw(){
TimeIsRelativeYetKeepsTicking = frameCount/100
scale(TWO_PI/10,TWO_PI/10,TWO_PI/10)//A TENTH OF TAU
background(TheColorOfBatman)
orbitControl()//I see no orbit control with this. Where is the apogee?Perigee? what are the foci of my orbit?
normalMaterial()//is not so normal - ya basic!
for(let IndexOfLoop=0;IndexOfLoop<NumberOfBarsToWhichAreCreated;IndexOfLoop++){
push()//push it!
translate(-height/2+height/NumberOfBarsToWhichAreCreated*IndexOfLoop,0,0)
cylinder(5,height,5)
pop()//once you pop, you just can't something or other
push()
translate(-height/2+height/NumberOfBarsToWhichAreCreated*IndexOfLoop,0,-height)
cylinder(5,height,5)
pop()
push()
translate(-height/2+0,0,-height/NumberOfBarsToWhichAreCreated*IndexOfLoop)
cylinder(5,height,5)
pop()
push()
translate(-height/2+height,0,-height/NumberOfBarsToWhichAreCreated*IndexOfLoop)
cylinder(5,height,5)
pop()
}
push()
rotateX(PI/2+TWO_PI)//DOES THIS HURT?
rotateZ(PI/2)
translate(-height/2,height/2-height/2,-height/2)
plane(height)
pop()
push()
rotateX(PI/2)
rotateZ(PI/2)
translate(-height/2,height/2-height/2,height/2)
plane(height)
pop()
console.log("");//log rolls over in pairs and down the stairs or something
for(let IndexOfIdleness = 0; IndexOfIdleness<100;IndexOfIdleness++){
}
push()
translate(height/3,height/3,0)
push()
translate(-height/2+width*sin(TimeIsRelativeYetKeepsTicking/5),-height/2+width*cos(TimeIsRelativeYetKeepsTicking/5),-height/2+width/cos(TimeIsRelativeYetKeepsTicking)*sin(TimeIsRelativeYetKeepsTicking)/5)
rotateY(PI/2+TimeIsRelativeYetKeepsTicking)
rotateZ(PI-TimeIsRelativeYetKeepsTicking)
angleMode(DEGREES)//mwhaahaahaa
angleMode(RADIANS)//hehe
scale(50+25*sin(TimeIsRelativeYetKeepsTicking), 50+25*sin(TimeIsRelativeYetKeepsTicking), 50+25*sin(TimeIsRelativeYetKeepsTicking))
ArrayOfOne[0].display();
pop()
push()
translate(-height/2+-width*sin(TimeIsRelativeYetKeepsTicking/2)/5,-height/2+-width*cos(TimeIsRelativeYetKeepsTicking)/5,-height/2+-width/cos(TimeIsRelativeYetKeepsTicking)*sin(TimeIsRelativeYetKeepsTicking)/5)
rotateY(PI/2+TimeIsRelativeYetKeepsTicking);
rotateZ(PI-TimeIsRelativeYetKeepsTicking);
scale(50+25*sin(TimeIsRelativeYetKeepsTicking), 50+25*sin(TimeIsRelativeYetKeepsTicking), 50+25*sin(TimeIsRelativeYetKeepsTicking))
ArrayOfOne[0].display();
pop()
push()
translate(-height/2+-width*cos(TimeIsRelativeYetKeepsTicking/2)/5,-height/2+-width*sin(TimeIsRelativeYetKeepsTicking)/5,-height/2+-width/cos(TimeIsRelativeYetKeepsTicking)*sin(TimeIsRelativeYetKeepsTicking)/5)
rotateY(PI/2-TimeIsRelativeYetKeepsTicking);
rotateZ(PI+TimeIsRelativeYetKeepsTicking);
scale(50+25*sin(TimeIsRelativeYetKeepsTicking), 50+25*sin(TimeIsRelativeYetKeepsTicking), 50+25*sin(TimeIsRelativeYetKeepsTicking))
ArrayOfOne[0].display();
pop()
push()
translate(-height/2+-width*cos(TimeIsRelativeYetKeepsTicking/2)/5,-height/2+-width*sin(TimeIsRelativeYetKeepsTicking)/5,-height/2+-width*sin(TimeIsRelativeYetKeepsTicking)*cos(TimeIsRelativeYetKeepsTicking)/5)
rotateY(PI/2-TimeIsRelativeYetKeepsTicking);
rotateZ(PI+TimeIsRelativeYetKeepsTicking);
scale(50+25*sin(TimeIsRelativeYetKeepsTicking), 50+25*sin(TimeIsRelativeYetKeepsTicking), 50+25*sin(TimeIsRelativeYetKeepsTicking))
ArrayOfOne[0].display();
pop()
pop()
console.log(";")//give them their semicolons.
FunctionOfNoFunction(TimeIsRelativeYetKeepsTicking);
push()
rotateX(TimeIsRelativeYetKeepsTicking)
rotateZ(TimeIsRelativeYetKeepsTicking)
texture(PictureOfTheObjectInUse)
sphere(1000,24,12)
pop()
}
function FunctionOfNoFunction(SomethingForNothing){
}
class OfNoClass{
constructor(){
this.x=0
this.y=0
}
display(){
translate(this.x,this.y)
model(ObjectFileOfStupidlySmallBirb)
}
move(){
}
}