Drawing Basic Patterns In Canvas

Begin with drawing a simple rectangular blue box like this:          function drawScreen() {            context.save();            drawPattern();            context.restore();        }        function drawPattern() {            context.fillStyle = “blue”; //   ... » read more

Basic Setup for HTML Canvas

This is a basic setup for starting any project in HTML5 CANVAS and Javascript.The script that is being used is Modernizer.js which is is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.         Canvas Study     http://modernizr.js                  ... » read more

Android: Updating View from Background Thread

Issue: android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.   For a small game application that I am currently working on, I needed to change the display text at certain intervals of time. Initially I tried to simply update the view(UI) using a timer class that runs after every... » read more