CSS Styles for cooler looking ascii-art
briankhuu.com
briankhuu.com
Take a look at this a demo pic: http://cl.ly/image/1i0x2X3W3G0x
Notice the rare case where the drop-shadow helps increase the contrast between foreground and background. You'll get props for doing that any time you pull it off.
/\_/\
____/ o o \
/~____ =-= /
(______)__m_m)
But in the context of ascii-diagrams, then I can see you point of not including stylised drop shadows.---
Btw, no shadow example is added now.
Guess you're right in stating that it looks "cooler" though. Try making the shadows dark grey instead of black: http://cl.ly/image/073a412z0f34.
text-shadow: 0 0 5px rgba(100,100,100,0.5);
Also speaking of which I created a canvas breakout game that uses a modified version of that lib a month ago - https://github.com/jarv/ascii-breakout (http://ascii-breakout.com if you want to see it in action)
On a side note. I wonder if you would like to somehow port http://ditaa.sourceforge.net/ to javascript.
Since many technical diagrams are done in ascii. It might actually be handy to auto convert to a Canvas image.
Not sure how one would deal with ascii-art to canvas however. But technical drawings is important.
/*
Diagram and ASCII ART styling for Jekyll
(and other markdown parser that appends a .language- prefix)
*/
.language-ascii-art {
display: inline-block;
font-family: "Lucida Console", Monaco, monospace;
letter-spacing: -0.2em;
line-height: 0.8em;
}If you look at the style, it's essentially just moving text characters closer to each other.
---
Btw, no shadow example is added now.