HTML Headers

The HTML headers list the JavaScript source files needed to run the application. They are generally the same as before, but with one addition…

The vertices, colors, and triangles arrays giving the input data must come from somewhere. We have them in JSON format, so we simply include them.

    <script type="text/javascript" src="cube.js"></script>