Goofing Around with HTML 5 Canvas

| | Comments (0) | TrackBacks (0)

I was goofing around with HTML 5 canvas for giggles this week. The canvas allows you to draw using JavaScript to a section of the page. HTML 5 defines a “2d” context, which allows you to draw lines, polygons, images, boxes, etc. You can style your stroke, fill, and shadow, etc. It’s pretty easy to goof around with. Oh, and if you’re using Internet Explorer, these won’t work. You’re out of luck because Microsoft is too cool for canvas.

Box Fractal Renderer

First, I built a box fractal renderer, which are my favorite things to doodle on graph paper.

Fractal Coastline

Then, I played some more with fractals and eventually ended up with this fractal coastline builder. Each view of this will be a little different. Some look more like coastlines than others.

Anyway, just some random goofing off I thought I’d share.

Cheers.

0 TrackBacks

Listed below are links to blogs that reference this entry: Goofing Around with HTML 5 Canvas.

TrackBack URL for this entry: http://contentment.org/mt/mt-tb.cgi/658

Leave a comment

About this Entry

This page contains a single entry by Andrew Sterling Hanenkamp published on August 7, 2009 11:53 PM.

Time Estimation Sucks was the previous entry in this blog.

Mario AI Competition and Perl is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.