A few months ago I developed a small javascript application that renders ‘crazy balls’ in HTML5 canvas. The balls move in random directions, change size and direction at random times. When they hit the borders of the canvas they bounce …
Category Archives: Web Development
3D Starfield in HTML5 Canvas
This article will show you how to create a 3D starfield using HTML5 Canvas. Below you can see the 3D starfield in action (well, if your browser supports HTML5 canvas). An interesting aspect of this simulation is that the stars that …
How to Draw A Cube Using PHP
PHP is one of the most used languages for web development, and it is often used to generate HTML pages. Today, I will show you how to use it to make something different. We will make a script to draw …
HTML5 Experiment: A Rotating Solid Cube
Previously I shared an HTML5 experiment consisting of a rotating wireframe cube. Today, I will share a new experiment that makes a rotating solid cube. This experiment is largely based on the wireframe cube experiment.
First Experiment with HTML5: A Wireframe Cube
HTML5 introduces many new powerful features, one of which is the canvas element. The canvas allows us to draw graphics using JavaScript. Here I present my first experiment with the HTML5 canvas element.
Generating Images with PHP
PHP is often used to generate HTML pages. However, PHP is capable of generating different types of content like music, videos, pdf documents, and images. In this tutorial, you will learn how to generate images on the fly using PHP. We will create a PHP script, that every time is invoked, generates an image with a random number.
