Hello, Cube!

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 and pulling them apart, makes the cube appear bigger.

Holding one's two fungers to the screen and pulling them together makes the cube appear smaller.

You can check out X3DOM at their website:

Comments

Popular posts from this blog

The Quantity of Syllables in Ancient Greek

The Naming of Sets in Set Theory: