![]()
Here's an useless trick but I thought it'd be interesting to share. I am sure that you have seen online icon drawing applications. Looking at one of those recently I had an idea of how to draw old school pixelated shapes using only css. So I am presenting what might be a world's first pure css drawer :)
Take a look at the Pure Css Icon Sketcher
The Concept
So how to "draw" with nothing but css? There's not much to work with as you can imagine. My idea was to create a 32 x 32 grid made of <a> elements. Each <a> has random id and href attribute. By default links have "transparent" backgrounds. When link is clicked on, :visited pseudo class is applied. I have styled :visited links with dark grey background. So, marked as visited, link is no longer transparent.
That gives us a feeling that we're coloring boxes and - actually drawing.
IE users will not be able to use this tool repeatedly because when page loads, IE treats all anchors as visited.
warnis 11 Feb, 2008
Dejan Cancarevic 11 Feb, 2008
Ivan Nikolic 11 Feb, 2008
Lim Chee Aun 12 Feb, 2008
Azeem 12 Feb, 2008
Jacorre 12 Feb, 2008
Catar4x 13 Feb, 2008
And I have make and edited a sprite creator with colors.
You can see in : http://www.dbdreams.net/Sprite_creator.php
It's a beautiful source !
Steven Wilson 15 Feb, 2008
Fedmich 17 Feb, 2008
Btw, you made me/us smile by that demo.
Polkovnik 19 Feb, 2008
Akai 23 Feb, 2008
Boris 14 Mar, 2008
Danish 18 Mar, 2008
It's cool idea :)
dibos 11 Jun, 2008
Nika Sew 14 Jun, 2008
marius 8 May, 2009