Slashdot Mirror


Color Ascii Art Library

thedj_sd writes "As the true slashdot reader you just love ascii art of course. You have toyed around with aalib or maybe you use it all the time to watch your pr0n :) Well VLC media player's senior developer sam was bored some time ago and created libcaca. The Colour AsCii Art library of which he himself says: 'I am perfectly aware that libcaca is the waste of time it looks to be. No need to tell me about that.' But you just can't help looking at that beautiful picture of Stitch, and Doom in coloured ascii is da bomb. It works on dos/windows, Linux and Mac OS X and there is a VLC plugin and SDL backend available."

38 of 186 comments (clear)

  1. What about.... by Anonymous Coward · · Score: 2, Funny

    libkacke?

  2. Amazing by GNUALMAFUERTE · · Score: 2, Funny

    So bad the name doesn't seems to say much about nice colours .... : )

    --
    WTF am I doing replying to an AC at 5 A.M on a Friday night?
  3. libCACA? by Yvan256 · · Score: 2, Funny

    Wow, now that is funny. In french, caca means poo or shit. That guy just created "libshit".

    1. Re:libCACA? by jcuervo · · Score: 2, Interesting

      ObSnopesLink:

      Claim: The Chevrolet Nova sold poorly in Spanish-speaking countries because its name translates as "doesn't go" in Spanish.

      Status: False.

      --
      Assume I was drunk when I posted this.
    2. Re:libCACA? by BigJim.fr · · Score: 4, Informative

      > Wow, now that is funny. In french, caca means poo
      > or shit. That guy just created "libshit".

      Actually Sam is French, so the humor is completely voluntary.

  4. I've been waiting for this for ages by Space+cowboy · · Score: 4, Funny

    .. so I too can view movies in colour when I'm browsing with Lynx :)

    Simon

    --
    Physicists get Hadrons!
    1. Re:I've been waiting for this for ages by Illserve · · Score: 2, Informative

      Not unless it's heavily motion compressed.

      40 x 80 characters x 30 frames per second is 96,000 bytes per second.

      And that's not including color information either, which is 4 bits per character, adding another 48K Bytes/sec.

  5. watching pr0n with aalib + xine by quigonn · · Score: 3, Funny

    I really have to recommend it! It's great fun to watch! I always use it when I want to watch pr0n but too lazy to fire up X11.

    --
    A monkey is doing the real work for me.
  6. TheDraw by Stavr0 · · Score: 4, Funny
  7. nop, libshit allready exist. by GNUALMAFUERTE · · Score: 4, Funny

    libshit is the code name for kernel32.dll : )

    --
    WTF am I doing replying to an AC at 5 A.M on a Friday night?
  8. Re:libcaca by kinnell · · Score: 4, Funny
    I do not seriously think this'll help this lib's author deploying his product.

    Agreed. Most commercial software firms will not develop with a library if it's name means shit. It's attitudes like this which work against ascii art libraries being taken seriously in the commercial world.

    --
    If I seem short sighted, it is because I stand on the shoulders of midgets
  9. ASCII art for Slashdot by Anonymous Coward · · Score: 5, Funny
    Whoa! In a moment of genious, I figured out a nice ASCII art logo for slashdot. Here it is (drumroll):

    /.

    Brilliant, eh?

    1. Re:ASCII art for Slashdot by Anonymous Coward · · Score: 3, Funny
      Mine's better:
      ......jXP....
      .....dR?.....
      ....jDF...... News for nerds
      ...iH7.......
      ..dKP........ stuff that matters
      .jM?....,db..
      dHP.....'^P'.
      I originally drew it without the dots and with a startrek ship in the background, but that was impossible to paste here.
    2. Re:ASCII art for Slashdot by AllUsernamesAreGone · · Score: 3, Funny

      It's not in colour though!

    3. Re:ASCII art for Slashdot by Waffle+Iron · · Score: 4, Funny
      It's not in colour though!

      This one might be:

      /.

    4. Re:ASCII art for Slashdot by AmbientOrbDevice · · Score: 2, Funny

      I love when people spell 'genius' wrong :) Not quite as fun as spelling 'illiterate' wrong, but good anyway.

  10. Google cache link by thedj_sd · · Score: 3, Informative

    http://www.google.nl/search?q=cache:NtGVCbhHFTkJ:s am.zoy.org/projects/libcaca/+libcaca&hl=nl&ie=UTF- 8

    1. Re:Google cache link by l0wland · · Score: 2, Informative

      I love to click on a link :-)

      --

      "Honey, I feel a certain distance between us..." "Really? A 31ms ping ain't that bad..."
  11. Mirror, front page text by rusty_razor · · Score: 2, Informative

    Note the mirror.
    libcaca - Colour AsCii Art library
    it's da shit!
    Hello /. folks! Please be easy on the server!
    Images and tarball are mirrored at http://www.via.ecp.fr/~sam/local/libcaca/.
    The libcaca library is a graphics library that outputs text instead of pixels, so that it can work on older video cards or text terminals. It is not unlike the famous AAlib library. libcaca needs a terminal to work, thus it should work on all Unix systems (including Mac OS X) using either the slang library or the ncurses library, on DOS using the library, and on Windows systems using either slang or ncurses (through Cygwin emulation) or .
    Libcaca is free software, and can be used, modified and ditributed under the terms of the GNU Lesser General Publice License. The logo on this page is copyrighted by Akira Toriyama so if anyone fancies drawing a new logo it would be much appreciated. Features

    The differences with AAlib are the following:
    * 16 available colours for character output
    * dithering of colour images
    * basic sprite primitives

    But libcaca also has the following limitations:
    * no support for brightness, contrast, gamma
    * unefficient character-choosing algorithms
    * no alternate fonts
    * no raw keyboard support
    * mouse support only works for slang
    * no custom drivers a la AA-on-X

    I am perfectly aware that libcaca is the waste of time it looks to be. No need to tell me about that.
    Screenshots

    Here are my first libcaca attempts. On the left, my test application, an image viewer. On the right, my first port of an application so that it uses libcaca: the VLC media player.
    As with all image processing applications, I needed the obligatory Lenna samples. From left to right: no dithering, ordered dithering, random dithering.
    no dithering ordered dithering random dithering
    Here are a few examples of my libcaca patch for libSDL. Once there is a libcaca backend for libSDL, any program using SDL can automatically benefit from libcaca's rendering routines. These examples show Frozen Bubble, the SABRE flight simulator, and the famous Doom. Frozen Bubble is fully playable, but SABRE and Doom aren't much due to the Ctrl and Shift keys not being recognized (see the TODO list about that).
    Frozen Bubble SABRE Doom splash screen first Doom level Download libcaca
    Latest libcaca release is libcaca-0.1.tar.gz. See the NEWS and ChangeLog files.
    Until libcaca enters Debian, woody and sid users may use one of the following apt sources: (sorry, sarge is not supported yet)

    deb http://sam.zoy.org/projects/debian woody main
    deb-src http://sam.zoy.org/projects/debian woody main

    deb http://sam.zoy.org/projects/debian sid main
    deb-src http://sam.zoy.org/projects/debian sid main

    Patch for libSDL
    This simple patch was quickly hacked from the AAlib video driver. Apply it to the libSDL sources and configuree libSDL with --enable-video-caca. Then use the SDL_VIDEODRIVER environment variable to run your SDL programs with libcaca output, for instance Frozen Bubble:
    SDL_VIDEODRIVER=caca frozen-bubble

    Download patch-libsdl1.2-libcaca0.1.diff. Patch for VLC The libcaca patch for the VLC media player was already applied upstream. Check the CVS version. Development The mailing-list for libcaca users and developers is libcaca@lists.zoy.org. To subscribe, send an email to ecartis@lists.zoy.org containing the words "subscribe libcaca". To unsubscribe, just use "unsubscribe libcaca". Please report bugs and make suggestions to libcaca@lists.zoy.org. There is no public access to the SVN repository yet, but you can browse it using the web interface, for instance to have a look at the BUGS and TODO lists.

  12. Re:Caca by jandrese · · Score: 2

    I think he knows what it means. Check out the homepage, particularly the graphic on the top right.

    --

    I read the internet for the articles.
  13. ANSI Art Library by lordscarlet · · Score: 4, Interesting

    It'll probably get slashdotted quickly, but for those who remember ANSI Art groups like iCE and ACiD I am in the process of creating a library of their packs viewable online. http://ansi.idledreams.net for the actual site and http://idledreams.net/ansi/ for news about it.

    1. Re:ANSI Art Library by WiKKeSH · · Score: 5, Informative

      While you're at it, you can check individual group's sites.

      http://www.senseimagery.com
      http://www.acid.org
      http://www.ice.org
      http://www.spreadthedisease. com
      http://www.spreadthedisease.com/27inch

    2. Re:ANSI Art Library by lordscarlet · · Score: 2, Informative

      And don't forget ASCII sites

      http://www.mimic.ca

      OK. I'm lame and only know one ASCII group site. :)

  14. More ASCII Art by MouseR · · Score: 3, Informative

    For those interested, here's Text mode Quake and AsciiMac, wich seem to predate the previous one, including the X11 ASCII art thing.

    What is it with ASCII??

  15. C64 PETSCII by NevesisEF · · Score: 2, Insightful

    I can't view this now - big brother's proxy and all - but it sounds like the good old days of the C64 BBSs that used PETSCII graphics. Full color, and many graphical characters - however ALL CAPS TEXT ONLY! But the days of the good old animated prompts and colorful message boards are still in my memories, yet I have no desire to go back to them and wait for a cursor to jump all around the screen at 1200 baud!

  16. Of course you could always just use quicktime by b-baggins · · Score: 4, Informative

    Apple provides an ASCII quicktime movie player, here:

    http://developer.apple.com/samplecode/Sample_Cod e/ QuickTime/Goodies/ASCIIMoviePlayerSample.htm

    There's nothing quite like watching the Matrix trailer in ASCII glory.

    --
    You can tell a great deal about the character of a man by observing those who hate him.
    1. Re:Of course you could always just use quicktime by ichandarin · · Score: 3, Informative
      Oops. You got the address wrong!

      Here are the correct links:
      -The program itself + source are at:
      http://developer.apple.com/samplecode/Sample_Code/ QuickTime/Goodies/ASCIIMoviePlayerSample/qtplyr.c. htm

      -And the sample video:
      http://developer.apple.com/samplecode/Sample_Code/ QuickTime/Goodies/ASCIIMoviePlayerSample.htm

      Hope those links help.

      --
      Denn wir sind wie Baumstaemme im Schnee. Scheinbar liegen sei glatt auf, mit kleinem anstoss sollte man sie wegschieben
  17. ASCII-art Made Easy by dupper · · Score: 4, Funny
    @

    Behold! The human form in all it glory!

    You can even recreate classic works of art:

    The Arnolfini Wedding Portrait by Jan Van Eyck:

    ______
    |..(......_
    |@@....
    |..d........

    The Creation of Adam by Michaelangelo:

    ......
    ..@ @
    ......
    Tyr Hits! -more-

    And for God's sake, lighten up the lameness filter!

  18. Re:Wrong assumptions by n4vu · · Score: 2, Interesting

    "Wrong assumptions" may be right. I believe it was teletype operators who came up with character art long before computers were on the scene.

  19. Look at his webpage logo, people! by Gudlyf · · Score: 5, Funny

    His webpage logo is clealy a lop of poo.

    --
    Trolls lurk everywhere. Mod them down.
  20. Hardware Optimization! by MarkJensen · · Score: 5, Funny

    Sounds like the perfect time to try out my new video card!

    Sweeeeet! ;)

  21. Re:Wrong assumptions by MxTxL · · Score: 4, Informative

    Back in the stone age, you know, before 1990, when modem speed was measured in baud and 300 of them was pretty good, people used to connect to BBSes as their primitive form of an internet. These were sort of stand-alone websites that you had to dial into directly (yes, over real phone lines). Since 300 baud modems transmit data at dismally slow speeds (and besides computer graphics displays were still primitive) it was necessary to provide any graphics content in a format that was easily and quickly transmitted and supported by the hardware. And by hardware, we're talking about Commodores and Amigas and early IBM PCs.

    Today, it's primitive and low-res but Back In The Day(tm), this type of art was the shiz-nit. Art packs (ok, these were mostly ANSI, not ASCII but similar vein) were traded across the country from BBS to BBS.

    If you've never tried to draw anything with giant multicolored blocks, you can't understand the talent that goes into this art medium. The ACiD guys were REALLY good.

  22. ATI drives can do that by Tobias+Luetke · · Score: 4, Interesting

    Indeed if you have the latest drivers for the DirectX series of ATI cards installed ( Catalyst 3.8+ ) you will find a smartshader menu in the display properties. Smartshaders are applyed in the last pass on the picture before its send to the screen. There are filters for making it look like a classic painting and things like that. In the settings for OpenGL smartshader there is a option to render the picture as ASCII ( only white /black or green/black though ). However it way funny to play Call of duty in ascii .

  23. Sweet! by siskbc · · Score: 4, Funny
    It'll probably get slashdotted quickly, but for those who remember ANSI Art groups like iCE and ACiD I am in the process of creating a library of their packs viewable online. http://ansi.idledreams.net for the actual site and http://idledreams.net/ansi/ for news about it.

    That's taking me back about 10 years. Oh shit, I'm 16 and I can't get a fucking date! AAaaaah!

    Glad I'm really 26 and married. Oh, wait - AAaaahhh!!!

    Seriously, thanks for posting the stuff.

    --

    -Looking for a job as a materials chemist or multivariat

  24. Been there, done that, two or three years ago. by WolfWings · · Score: 5, Interesting

    Should I bother releasing my patch to AALib? Replaces the monochrome buffer with a 32bpp RGB- buffer, uses a much more tuned colour-selection system than libCACA appears to.

    A screenshot of the BattleToads title screen, linked out of Archive.org as I don't have a current website for the TextNES emulator worth pointing too at the moment, unfortunately.

    But yeah... been there, did that, didn't think anyone would be interested so I never released the patch.

  25. HOW IS THIS ASCII ART? Check Simpsons ASCII archiv by BurningTyger · · Score: 4, Insightful

    It merely converts the picture to lower resolution image by replacing each pixel with a symbol like * or @ with different colour. This is cheating. Anyone can write a program that does this conversion.

    The real ascii art uses only black text. And by using different ascii symbol, it can create the black and white and different shade of gray to protray an image.

    For instance, Simpsons ASCII ART

  26. Were we go again... by RatBastard · · Score: 3, Insightful

    Every time there is a story about someone doing something just for the hell of it some tool comes along and says that it's a bad idea because it doesn't directly enrich Linux/Open Source/The Roman Empire/Whatever in the manner that said poster wants it to.

    Dude, and all of your close-minded brethren, chill the hell out. People do these things because they are having fun. They do them because they WANT to.

    Not everyoine gives a damn about Fighting The Big Fight. Get over yourself.

    --
    Boobies never hurt anyone. - Sherry Glaser.
  27. it's not useless by jago25_98 · · Score: 2, Funny

    I can now play Unreal Tournament/whatever on my silent p90 thin-client