Quick torus demo three.js
How do I make an quick torus demo three.js?
A quick torus demo using three.js . What is a quick torus demo three.js? How do you make a quick torus demo three.js? This script and codes were developed by Jeff Daze on 18 January 2023, Wednesday.
Quick torus demo three.js - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Quick torus demo three.js</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script src='http://cdnjs.cloudflare.com/ajax/libs/three.js/r69/three.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Quick torus demo three.js - Script Codes CSS Codes
body { margin: 0; }
canvas { width: 100%; height: 100% }
Quick torus demo three.js - Script Codes JS Codes
var scene = new THREE.Scene();
var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
var renderer = new THREE.WebGLRenderer();
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
var geometry = new THREE.TorusGeometry( 20, 3, 16, 100 );
var material = new THREE.MeshBasicMaterial( { color: 0xffffff } );
var torus = new THREE.Mesh( geometry, material );
scene.add( torus );
camera.position.z = 50;
var render = function () { requestAnimationFrame( render ); //torus.rotation.x += 0.1; torus.rotation.y += 0.01; renderer.render(scene, camera);
};
render();
Developer | Jeff Daze |
Username | jeffdaze |
Uploaded | January 18, 2023 |
Rating | 3 |
Size | 1,894 Kb |
Views | 4,048 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
JS test and Box Shadow | 1,906 Kb |
Simple handlebars demo | 1,940 Kb |
Speed Reading | 6,553 Kb |
Angular Drag Example | 2,497 Kb |
Circular Drag and Drop | 2,451 Kb |
A Pen by Jeff Daze | 2,191 Kb |
Code snippets for a Puyo clone | 2,363 Kb |
Starfield using KineticJS | 3,290 Kb |
Corner Triangle | 1,490 Kb |
Transparent Gradient | 2,735 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Brown by pure CSS, no image, no javascript | Aaronchuo | 2,652 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
Improve | Gavra | 1,652 Kb |
Reviews and Ratings Star | Zbnmstry | 1,591 Kb |
Page Transitions in Backbone | Mikefowler | 3,691 Kb |
Snow collision | Wojtek1150 | 3,542 Kb |
Ghost Buttons with CSS3 | Mithicher | 2,509 Kb |
Sticky notes with CSS3 | HaiNguyen007 | 2,146 Kb |
Vue Transition | Chenming142 | 4,561 Kb |
AngularJS Skills | Supro | 3,312 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!