Monthly Archives: June 2014

A Skeletal Animation Framework in JavaScript

The JavaScript program below builds on the code from a previous post to implement so-called “skeletal” or “skin-and-bones” animation of a three-dimensional mesh. To see it in action, copy it into an .html file and open that file in a … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

A Pac-Man Clone in JavaScript

The JavaScript code below implements a simple (and, frankly, unattractive) clone of the old arcade game Pac-Man. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. Or, … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

A Bejeweled Clone in JavaScript

The JavaScript code below implements a simple clone of the tile-matching game Bejeweled. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. Or, for an online version, … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

A GIF Image Viewer in JavaScript

The JavaScript code below, when run, will present a file upload button, which will allow you to select a .GIF file, upload it, and display it on the web page.  To see it in action, copy it into an .html … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

A Sound Editor in HTML5 Using JavaScript

The JavaScript code below implements a sound editor in JavaScript. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. Or, for an online version, visit http://thiscouldbebetter.neocities.org/soundeditor.html. The … Continue reading

Posted in Uncategorized | Tagged , , , | 2 Comments

A Stock Ticker in JavaScript Using the Yahoo Finance API

The JavaScript below implements a simple stock ticker. To see it in action, copy it into an .html file, and open that file in a web browser that runs JavaScript. By default, the ticker starts off tracking a single stock, … Continue reading

Posted in Uncategorized | Tagged , , | 2 Comments

Text Layout and Justification on an HTML5 Canvas

The JavaScript code below, when run, will automatically split a simple poem across three different rectangles on an HTML5 canvas, and render the justified text.  To see it in action, copy it into an .html file and open that file … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment