To use this tool, you must first edit this file and include your script file to it and make sure your favourite web browser supports JavaScript. Then, to make your algorithm object accessible to this tool, you must create a global variable within your algorithm file called testAlgo, which then actually contains your algorithm object i.e. the object that provides rgbMap() and rgbMapStepCount() functions. Now you're ready to load this file with your browser and see your first results.
If you see what you expect to see in the Algorithm Properties section below, you'll know your script has been evaluated successfully. Next, put some values to the Width and Height boxes in the Grid Size section, click Update and see if your script calculates the rgbMapStepCount(width, height) result correctly. If everything is A-OK, you should already see the first frame of your RGB map at the bottom of the page. Clicking Next and Previous allows you to skip between steps.
For troubleshooting purposes, I would suggest using some good JavaScript development tools for your browser. Mozilla FireFox has a built-in Web Console behind Tools -> Web Developer which is very useful in hunting errors within the JavaScript code.
rgbMap(width, height, rgb, step) |