Monthly Archives: April 2015

The Catmull-Clark Subdivision Surface Algorithm in JavaScript

Below is an implementation in JavaScript of the Catmull-Clark “subdivision surface” algorithm. Originally developed by pioneering computer graphics researchers Edwin Catmull and Jim Clark in the 1970s, this algorithm divides each face of an arbitrary polyhedron, or “mesh”, into multiple … Continue reading

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

A Font Tracing Engine in JavaScript

Below is a simple font-tracing engine implemented in JavaScript. To see it in action, copy it into an .html file and open it in a web browser that runs JavaScript. Or, for an online version, visit https://thiscouldbebetter.neocities.org/fonttracingengine.html. It still needs … Continue reading

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

A Networked Multiplayer Game in JavaScript with IO.js

The JavaScript code below implements a very simple multiplayer “Spacewar” game in Javascript, using IO.js and the Socket.IO library. To see it in action, follow the steps below. It’s not much of a game at this point. There’s no planet … Continue reading

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

A Client/Server System with IO.js and Socket.IO

The JavaScript code below implements a simple client-server system using IO.js. To see it in action, follow the steps below. 1. If you have not already done so, download and install IO.js (or, if preferred, its predecessor, Node.js). Make a … Continue reading

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

Plotting, Drawing, and Intersecting Bezier Curves in JavaScript

The JavaScript code below, when run, plots and draws two Bezier curves (one is a straight line), and calculates and draws their bounding boxes. It also makes an attempt to find and highlight the intersections between them, though the keen … Continue reading

Posted in Uncategorized | Tagged , , , , | 1 Comment