AlteredQualia’s Image Evolution is a interesting canvas demo based on an idea by Roger Alsing who asked: “could you paint a replica of the Mona Lisa using only 50 semi transparent polygons?”
Image Evolution takes this one step further by allowing you to specify the target result image, the number of polygons, the mutation level and even apply a variety of effects.
Sit there long enough and you can paint your own Mona Lisa
The evolution happens as follows:
Firstly, setup a random DNA string to form the application start. Then:
- Copy the current DNA sequence and mutate it slightly
- Use the new DNA to render polygons onto a canvas
- Compare the canvas to the source image
- If the new painting looks more like the source image than the previous painting did, then overwrite the current DNA with the new DNA
- Repeat from step 1
Check out the Image Evolution demo
Pipes, built by Yahoo, is an interesting example of how using the canvas element can enhance the experience of a web based application without needing to resort to Flash. In a world where more and more applications are moving to the web, Pipes offers an insight in to how we can make applications more interesting.
Pipes is a powerful composition tool built by Yahoo designed to aggregate, manipulate, and mashup content from around the web. Simple commands can be combined together to create output that meets your needs. For this application, canvas is used as a simple visual tool to represent the pipes themselves.
Connecting the pipes to make a feed
Check out Pipes; watch the video to learn how to build your own Pipe or view our special canvas flavoured feed
CSS sprites are great. They can help reduce the load time of your page by decreasing the number of HTTP requests made.
To create CSS sprites, all you need to do is place all of your smaller images into one big image. Then using CSS, adjust the image positioning using the background-position property to display the part of the image you require.
Tim Chien has created a useful graphics tool which can generate the larger image for your CSS sprites automatically. You simply supply a list of images, select a appropriate padding and then drag the smaller images around until you are happy. Once you are done, the generator supplies both the large image and all the background positions you need to get your smaller images.
Generate those sprites!
Although this application works in Opera, Safari and Chrome; it can only save in Firefox or Internet Explorer.
Check out the CSS Sprites Generator
Scott from the Filament Group has posted about a new jQuery plugin called Visualize which they have created that creates charts and graphs from tabular data using the HTML canvas element.
Pretty charts for everyone thanks to Visualize!
Accessible data visualization in HTML has always been tricky to achieve, particularly because elements such as images allow only the most basic features for providing textual information to non-visual users.
Using the plugin is as simple as including jQuery and the plugin and calling the code from your HTML table:
Check out the Visualize plugin
Fancy making a game? Using Canvas? You do! Excellent!
Matthew Casperson has been incredibly busy writing this whole bunch of tutorials about developing a platformer using canvas. From keyboard input to parallax scrolling, from animations to resource loading – it’s all covered in his tutorials.
Jump, run, jump some more.
Check them out here:
Mozilla have come up with something special yet again – this time in the form of the Open Web Tools Directory. The directory lists all the useful applications and tools available to web developers, with a component to allow you to narrow down your search.
But rather than display this information in a table, Mozilla have opted to display the information in a canvas element and make a space theme of it.
Yay! Space theme!
View the Open Web Tools Directory