fractalkitty looking for math? fractalkitty.com

early works

sphere_large

#image#3d#interactive#animation

theta

let img;
let theta = 0;
function setup() {
  createCanvas(720, 720, WEBGL);
img = loadImage('https://fractalkitty.com/wp-content/uploads/2020/08/smallmap-1.png');
}

function draw() {
  strokeWeight(0.1);
  orbitControl();
  background(0);
  push();
  rotateY(theta * 150 * 0.001);
  if (mouseX <= 0 || mouseX >=700|| mouseY>=700){
    theta += 0.05;}
  texture(img);
  sphere(200);
  pop();
  translate(340, 0, 0);
  
}