The first thing that I programmed on was a Casio fx-7400G PLUS (graphing calculator). Though very simple, it helped me get the basics down. One of the first programs that I made was one that would take a number and then draw a star with that many sides. Today, I quickly made an HTML canvas version of this small program:
Simple Star On Canvas

The code is pretty simple and is easily accessible on JSBin as shown in the above example. The only special addition is the fact that I am using jPaq to get parameters that are passed from the form on page reload. Remember that this is only an example of how to use the CANVAS element and thusly will accept invalid values for the parameters. Have fun! 8)

Categories: BlogJavaScript

Leave a Reply

Your email address will not be published. Required fields are marked *