#codevember - Rose
How do I make an #codevember - rose?
[rose] a simple experiment for #codevember day 17, 2016Created by XORXOR, 2016 Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0). What is a #codevember - rose? How do you make a #codevember - rose? This script and codes were developed by XORXOR on 27 January 2023, Friday.
#codevember - Rose - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>#codevember - Rose</title>
</head>
<body> <html> <head> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <title>codevember-xorxor-rose</title> <style> body { margin: 0px; overflow: hidden; background-color: #FFB347; font-family: 'Arial'; } #help{ position: absolute; top: 1%; left: 1%; font-size: 30px; color: #489eba; } </style> </head> <body> </body>
</html> <script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/896175/three.min.js'></script>
<script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/896175/OrbitControls.js'></script> <script src="js/index.js"></script>
</body>
</html>
#codevember - Rose - Script Codes JS Codes
//created by XORXOR,2016
var contianer, renderer, camera, scene;
var cubes=[]
init()
animate();
function init() { container = document.createElement('div'); document.body.appendChild(container); camera = new THREE.PerspectiveCamera( 40, window.innerWidth/window.innerHeight, .1, 10000 ); camera.position.set(0.0, 0.0, 8); scene = new THREE.Scene(); renderer = new THREE.WebGLRenderer({ antialias: true }); renderer.setSize(window.innerWidth, window.innerHeight); renderer.setClearColor(0x000000); container.appendChild(renderer.domElement); //geometry var num = 250; var geometry = new THREE.BoxBufferGeometry(1, 1, 1); for (var i = num; i > 0; i--) { var eGeometry = new THREE.EdgesGeometry( geometry ); var eMaterial = new THREE.LineBasicMaterial( { color: 0xffffff, linewidth: 2,opacity:0.03,transparent:true, depthTest:0,blending:2} ); var edges = new THREE.LineSegments( eGeometry, eMaterial ); scene.add( edges ); cubes.push(edges); } controls = new THREE.OrbitControls(camera, renderer.domElement); controls.maxDistance = 14; controls.minDistance = 6; window.addEventListener('resize', onWindowResize, false);
}
function animate() { var time = performance.now() * 0.001; for (var i = 0; i < cubes.length; i++) { var scale = .01*i +.001 var rotate = i + -15*time; cubes[i].rotation.set(radians(rotate),radians(rotate),radians(rotate)) cubes[i].scale.set(scale,scale,scale) } requestAnimationFrame(animate); renderer.render(scene, camera);
}
function random(seed) { var x = Math.sin(seed) * 10000; return x - Math.floor(x);
}
function radians(degrees) { return degrees * Math.PI / 180;
};
function onWindowResize() { camera.left = window.innerWidth / - 2; camera.right = window.innerWidth / 2; camera.top = window.innerHeight / 2; camera.bottom = window.innerHeight / - 2; camera.updateProjectionMatrix(); renderer.setSize( window.innerWidth, window.innerHeight );
}
Developer | XORXOR |
Username | xorxor_hu |
Uploaded | January 27, 2023 |
Rating | 4.5 |
Size | 2,589 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 |
Grid of Birds | 3,512 Kb |
Morphing Tubes | 3,406 Kb |
Complex Form with Black and White Spirals | 3,340 Kb |
The Walking Raymarcher | 7,934 Kb |
Cubic Tunnel | 4,791 Kb |
Pastel Pump | 3,763 Kb |
2050 | 3,612 Kb |
Pipes | 3,300 Kb |
Complex Form with Black and White Bands | 3,209 Kb |
Birds | 5,934 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 |
Parallax.js | Zmeeey5 | 2,330 Kb |
Bootstrap Responsive Menu Drawer | JesseGlacken | 3,777 Kb |
Kut D3 | Jellevrswk | 3,687 Kb |
Wip elementary os navbar | Nickcolley | 2,993 Kb |
RWD Conversion Practice | Jxqr97 | 2,743 Kb |
Polygon Logo in CSS | Kai | 3,412 Kb |
Arrow Navigation | Hinducows | 1,973 Kb |
Css or Czz.. | Judag | 4,111 Kb |
Long Shadow Button | Uixcrazy | 3,550 Kb |
Alter bg opacity on hover... | Chrisboon27 | 2,054 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!