Below is the code template I am suppost to change to create the above pendulum (
ID: 3796876 • Letter: B
Question
Below is the code template I am suppost to change to create the above pendulum (not the answer):
Also here is the HTML code for the javascript code above:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Continually Rotate A Triangle (Button)</title>
</head>
<body>
<canvas id="webgl" width="400" height="400">
Please use a browser that supports "canvas"
</canvas>
<p>
<button type="button">UP</button>
<button type="button">DOWN</button>
</p>
<script src="http://www.cse.unt.edu/~renka/5220/matsuda/lib/webgl-utils.js"></script>
<script src="http://www.cse.unt.edu/~renka/5220/matsuda/lib/webgl-debug.js"></script>
<script src="http://www.cse.unt.edu/~renka/5220/matsuda/lib/cuon-utils.js"></script>
<script src="http://www.cse.unt.edu/~renka/5220/matsuda/lib/cuon-matrix.js"></script>
<script src="RotatingTriangle_withButtons.js"></script>
</body>
</html>
Can someone help with this?
Explanation / Answer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Continually Rotate A Triangle (Button)</title>
</head>
<body>
<canvas id="webgl" width="400" height="400">
Please use a browser that supports "canvas"
</canvas>
<p>
<button type="button">UP</button>
<button type="button">DOWN</button>
</p>
<script src="http://www.cse.unt.edu/~renka/5220/matsuda/lib/webgl-utils.js"></script>
<script src="http://www.cse.unt.edu/~renka/5220/matsuda/lib/webgl-debug.js"></script>
<script src="http://www.cse.unt.edu/~renka/5220/matsuda/lib/cuon-utils.js"></script>
<script src="http://www.cse.unt.edu/~renka/5220/matsuda/lib/cuon-matrix.js"></script>
<script src="RotatingTriangle_withButtons.js"></script>
</body>
</html>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.