// Get a reference to the canvas canvas = document.getElementById("canvas"); // Set the canvas size canvas.width = 512; canvas.height = 512;
var colorMap = [ 255,0 ,0 , // Initial symbol color 0 ,0 ,0 , // Black 255,255,255, // White 0 ,255,0 , // Green 0 ,0 ,255, // Blue 255,255,0 , 0 ,255,255, 255,0 ,255, ];