Currently, only a few browsers support WebGL. Please see another article in my article: Can I use WebGL?.
The following example is to test it in Chrome 16/23 under Windows and Firefox 17 under Android. If you are using a non-compatible browser, a warning will pop up.
Figure 1: Animated WebGL cubes containing Hello world text
On HTML5-compatible browsers, you will see the cube with animation effects as shown in the following figure:
Figure 2: Screenshot of the example run
The code is based on Lighting in WebGL - How to simulate lighting effects in your WebGL context - Thanks a lot for this tutorial. When the instance is initially run, the animated cube is rendered with a static Bitmap graphical object.
The following code demonstrates how to render text dynamically in a program:
XML/HTML Code Copy content to clipboard