Monthly Archives: June 2013

A Roguelike Game in JavaScript

The code below implements a “Roguelike” game 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, to play an online version, visit http://thiscouldbebetter.neocities.org/roguelike.html. If … Continue reading

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

Converting Between RGB and HSV Color Spaces in JavaScript

The JavaScript code included below implements an interface to allow the user to convert between colors in the RGB (red, green, blue) color space and the HSV (hue, saturation, value) color space. To see it in action, copy it into … Continue reading

Posted in Uncategorized | Leave a comment

Fourier Frequency Analysis and Synthesis of a WAV Sound File in JavaScript

Fourier Frequency Analysis is a method of approximating an arbitrarily complex function (say, an audio waveform) as a combination of simple sinusoidal waves by determining how strongly each frequency is present in the original function. Basically, you start with a … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 2 Comments

Using Message Queues in JavaScript with Node.js and RabbitMQ

1. If you have not already done so, download and install Node.js. Details are given in a previous post. Make sure that the directory containing the executable is present in the operating system’s PATH environment variable. 2. Download and install … Continue reading

Posted in Uncategorized | Tagged , , , | 8 Comments

A Simple Music Synthesizer in JavaScript

The code included below implements a simple text-to-music synthesizer 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/synthesizer.html. … Continue reading

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