3d_01

In this example below you will see how to do a 3d_01 with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by ayakooo, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright ayakooo ©
  • HTML
  • CSS
  • JavaScript
    <script src="//cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.7/p5.min.js"></script>

/*Downloaded from https://www.codeseek.co/ayakooo/3d_01-oewxWL */
    * {
  margin: 0;
  padding: 0;
}


/*Downloaded from https://www.codeseek.co/ayakooo/3d_01-oewxWL */
    function setup(){
  createCanvas(windowWidth, windowHeight, WEBGL);
}

function draw(){
  background(200);
  rotateX(frameCount * 0.01);
  rotateY(frameCount * 0.01);
  box(200, 200, 200);
}

Comments