Zend Certified Engineer

phpguru.org

Quality PHP, Javascript and C# code
Download RGraph: HTML5 canvas graph library... Home ~ Downloads ~ FAQs ~ Licensing
RSS Feed RSS Feed
Follow me on Twitter Follow me on Twitter

Articles

HTML5

Javascript

PHP5

PHP4




Licensing

All the code here is covered by the PHPGuru license. A short summary is that for any sort of commercial use there is a small one-off licensing fee to pay, and for charity and educational use there is a reduced license fee.

You can read more about licensing here (where there's also a link to Google Checkout).

« Back to canvas article

A HTML5 canvas example: CanvasBalls!

[Content that is shown to users using browsers that don't support the canvas tag]

A small example (from when I was learning to use canvas and now tarted up a little) of drawing circles on a canvas. The colours have an alpha channel, for example: rgba(255,0,0,0.5). The dashed canvas border is just some CSS that I've applied to the canvas tag to make it easily identifiable. A far better example of the canvas tag is my canvas based graphing library: RGraph. I was going to add the source code, but as I added animation it grew somewhat. So now you'll simply have to view the source (life is so hard isn't it...?).