Below is the code template I am suppost to change to create

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 onload=\"main()\">
<canvas id=\"webgl\" width=\"400\" height=\"400\">
Please use a browser that supports \"canvas\"
</canvas>
<p>
<button type=\"button\" onclick=\"up()\">UP</button>
<button type=\"button\" onclick=\"down()\">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?

Solution

<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"utf-8\" />
<title>Continually Rotate A Triangle (Button)</title>
</head>

<body onload=\"main()\">
<canvas id=\"webgl\" width=\"400\" height=\"400\">
Please use a browser that supports \"canvas\"
</canvas>
<p>
<button type=\"button\" onclick=\"up()\">UP</button>
<button type=\"button\" onclick=\"down()\">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>

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: <!

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site