Tag Archives: programming

Getting Started with Knockout.JS

The instructions below can be followed to create a simple task list application in Knockout.js. Knockout.js is an open-source JavaScript web framework that implements the “MVVM” (“Model-View-ViewModel”) software pattern. It was developed by Steve Sanderson while employed at Microsoft. These … Continue reading

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

Getting Started with ReactJS

The instructions below can be followed to create a simple user interface in React.js. React.js is an open-source user interface library for JavaScript originated by Facebook. These instructions are a simplified version of the tutorial found on React.js’s official website, … Continue reading

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

A Flood-Fill Implementation in JavaScript

Below is a simple implementation of a floodfill algorithm in JavaScript. When run, the program will draw a green background on a canvas, render the word “FLOOD” over it in orange, and then flood-fill the background with cyan, leaving the … Continue reading

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

A Visual Acuity Chart Generator in JavaScript

The JavaScript code below, when run, will generate a random visual acuity chart. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. This code is just a … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Isolating Characters in an Image in JavaScript

The JavaScript program below first draws horizontal separators between lines of text in an imported image, and then draws separators between individual characters in each line. Along with a few other recent posts, it is intended as the beginnings of … Continue reading

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

Drawing Rules Between Lines of Text in Javascript

The JavaScript program below will automatically draw rules between lines of text in a loaded image. It is intended as an early step in an optical character recognition system. To see it in action, copy it into a .html file … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

An Image Auto-Cropper in JavaScript

The JavaScript program below allows the user to specify an input file, a background color, and a difference threshold, and will automatically crop the image to remove any pixels around its border that match the background color within the specified … Continue reading

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