Posts

Showing posts with the label cube

Hello, Cube!

Image
My first X3DOM page Hello, Cube!      Figure 1:   It is possible to script Three-dimensional objects with X3DOM.  X3DOM follows the declarative scripting paradigm of two-dimensional SVG as opposed to following the programming imperative paradigm of JavaScript and Canvas. This is my first html page that includes a three-dimensional object. X3DOM is a Javascript library that allows one to code three-dimensional objects - such as cubes, speheres, cylinders, etc. - with tags, just as SVG allows one to do with two dimensional objects - squares, circles etc. You can manipulate the below cube with your finger - should you be employing a touchscreen - or with your mouse cursor - should you be employing a desktop. Should you use two fingers on a touch-screen device, then you can scale the size of the cube in real time. Holding one's two fingers to the screen...