For my creative code I referenced my code off of 3D : orbit control by p5. for my code I changed the background color from white to deep pink (255,20,147), and then i modified the length and size of the shapes. For the squares I made them longer width and length, resembling stair case structure. then for the cones I also extended the width of the top flat part of the cone, and I also pulled the tip of the cone downward making it longer and more drastic. For my code I also changed how fast the orbit moves to 139, this made it faster and turns the 3d shapes into 2d shapes on the canvas.
function setup(){
createCanvas(900, 550, WEBGL);
}
function draw(){
background(255,20,147);
var radius = width * 1.5;
//drag to move the world.
orbitControl(139);
normalMaterial();
translate(0, 0, -600);
for(var i = 0; i <= 12; i++){
for(var j = 0; j <= 12; j++){
push();
var a = j/12 * PI;
var b = i/12 * PI;
translate(sin(2 * a) * radius * sin(b), cos(b) * radius / 2 , cos(2 * a) * radius * sin(b));
if(j%2 === 0){
cone(77, 120);
}else{
box(200, 10, 30);
}
pop(25);
}
}
}