This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js"></script> | |
<meta name="description" content="CS4406 Computer Graphics - Exercise #5" /> | |
<meta charset="utf-8" /> | |
<title>Three.js Methane Molecule #2</title> | |
<style> | |
#container { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Three.js Ball Bouncing off Walls</title> | |
<style id="jsbin-css"> | |
body { background-color:#ededed; font:normal 12px/18px Arial, Helvetica, sans-serif; } | |
h1 { display:block; width:600px; margin:20px auto; padding-bottom:20px; font:normal 24px/30px Georgia, "Times New Roman", Times, serif; color:#333; text-shadow: 1px 2px 3px #ccc; border-bottom:1px solid #cbcbcb; } | |
#container { width:600px; margin:0 auto; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js"></script> | |
<meta name="description" content="Three.js Ruffled Paper Spheres" /> | |
<meta charset="utf-8" /> | |
<style> | |
#container { | |
background: #000000; | |
width: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!--<script src="https://getfirebug.com/firebug-lite-debug.js"></script>--> | |
<meta name="description" content=">Three.js Methane Molecule" /> | |
<meta charset="utf-8" /> | |
<title>Three.js Methane Molecule</title> | |
<style> | |
#container { | |
background: #000000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- <script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js"></script> --> | |
<meta name="description" content="Three.js Bouncing Ball Changing Colors" /> | |
<meta charset="utf-8" /> | |
<style> | |
#container { | |
background: #000000; | |
width: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- <script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js"></script> --> | |
<meta name="description" content="Three.js Square Transformations" /> | |
<meta charset="utf-8" /> | |
<style> | |
#container { | |
background: #000000; | |
width: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!--<script src="https://getfirebug.com/firebug-lite-debug.js"></script>--> | |
<meta name="description" content="Three.js My Pink Doughnuts" /> | |
<meta charset="utf-8" /> | |
<title>Three.js My Pink Doughnuts</title> | |
<style> | |
#container { | |
background: #000000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!--<script src="https://getfirebug.com/firebug-lite-debug.js"></script>--> | |
<meta name="description" content="Three.js Black Hole and Function Grapher" /> | |
<meta charset="utf-8" /> | |
<title>Three.js Black Hole and Function Grapher</title> | |
<style> | |
#container { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
NOTES: If $newa is not pre-filled, the function will fail | |
because the keys will be added out of numerical order, and also, we can't | |
use ksort here because the test times out for large input arrays if we | |
do sorts or shifts of any kind. | |
i.e. $newa[0] might not be in the first spot of the array for instance. | |
Pre-filling the $newa array makes sure that the keys are 0-($n-1) in order. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// array to rotate | |
$a = [1,2,3,4,5]; | |
// the number of left rotations | |
$d = 4; | |
// we want 5,1,2,3,4 as the end result |