source: www/index.html @ 1411

Last change on this file since 1411 was 1411, checked in by Sam Hocevar, 14 years ago
  • TOIlet 0.1 release.
  • Property svn:keywords set to Id
File size: 12.6 KB
Line 
1<?php header("Content-Type: text/html; charset=utf-8"); ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
3       "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
4
5<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
6
7<head>
8   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9   <meta name="GENERATOR" content="vim" />
10   <meta name="Author" content="sam@zoy.org (Sam Hocevar)" />
11   <meta name="Description" content="libcaca - Colour AsCii Art library" />
12   <meta name="Keywords" content="libcaca, ASCII, ASCII ART, console, text mode, ncurses, slang, AAlib" />
13   <title>libcaca - Colour AsCii Art library</title>
14   <link rel="icon" type="image/x-icon" href="/favicon.ico" />
15   <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
16   <link rel="stylesheet" type="text/css" href="/main.css" />
17</head>
18
19<body>
20
21<?php include($_SERVER["DOCUMENT_ROOT"]."/header.inc"); ?>
22
23<img src="logo-caca.png" width="128" height="128"
24     alt="libcaca logo" class="caca" />
25
26<h2> Introduction </h2>
27
28<p> <i>libcaca</i> is a graphics library that outputs text instead of pixels,
29so that it can work on older video cards or text terminals. It is not unlike
30the famous <a href="http://aa-project.sourceforge.net/aalib/">AAlib</a>
31library, with the following improvements: </p>
32
33<ul>
34  <li> Unicode support </li>
35  <li> 2048 available colours (some devices can only handle 16) </li>
36  <li> dithering of colour images </li>
37  <li> advanced text canvas operations (blitting, rotations) </li>
38</ul>
39
40<p> Libcaca works in a text terminal (and should thus work on all Unix
41systems including Mac OS X) using the S-Lang or ncurses libraries. It also
42works natively on DOS and Windows. </p>
43
44<p> Libcaca was written by Sam Hocevar &lt;<a
45href="mailto:sam@zoy.org">sam@zoy.org</a>&gt; and Jean-Yves Lamoureux
46&lt;<a href="mailto:jylam@lnxscene.org">jylam@lnxscene.org</a>&gt;. It is
47<a href="http://www.gnu.org/philosophy/free-sw.html">free software</a>,
48and can be used, modified and distributed under the terms of the <a
49href="http://sam.zoy.org/wtfpl/">Do What The Fuck You Want To Public
50License</a>. </p>
51
52<h2> New </h2>
53
54<p> <b>November 16th, 2006</b>: <a href="/toilet.html">TOIlet</a> 0.1 </p>
55
56<p> <b>November 12th, 2006</b>: libcaca 0.99.beta10 </p>
57
58<h2> Screenshots </h2>
59
60<p> Here are a few <i>libcaca</i> screenshots. </p>
61
62<table cellspacing="5" border="0">
63  <tr>
64    <td align="center">
65      <a href="img/stitch-80x45.png"><img alt="cacaview"
66         width="73" height="90"
67         src="img/tn-stitch-80x45.jpeg" /></a>
68      <br /><small><code>cacaview</code></small>
69    </td>
70    <td align="center">
71      <a href="img/cacaball-80x50.png"><img alt="cacaball"
72         width="101" height="90"
73         src="img/tn-cacaball-80x50.jpeg" /></a>
74      <br /><small><code>cacaball</code></small>
75    </td>
76    <td align="center">
77      <a href="img/cacaplas-80x50.png"><img alt="cacaplas"
78         width="101" height="90"
79         src="img/tn-cacaplas-80x50.jpeg" /></a>
80      <br /><small><code>cacaplas</code></small>
81    </td>
82    <td align="center">
83      <a href="img/truecolor-32x16.png"><img alt="truecolor"
84         width="87" height="90"
85         src="img/tn-truecolor-32x16.jpeg" /></a>
86      <br /><small>TrueColor</small>
87    </td>
88    <td align="center">
89      <a href="img/unicode-80x24.png"><img alt="unicode"
90         width="120" height="75"
91         src="img/tn-unicode-80x24.jpeg" /></a>
92      <br /><small>Unicode</small>
93    </td>
94    <td align="center">
95      <a href="img/swallow-80x32.png"><img alt="swallow"
96         width="120" height="81"
97         src="img/tn-swallow-80x32.jpeg" /></a>
98      <br /><small>swallowing applications</small>
99    </td>
100  </tr>
101</table>
102
103<p> See also the various export formats, generated from an old
104  <a href="lc-mw1.ans">ANSI file</a>:
105  <a href="export.png">PNG</a> (through TGA),
106  <a href="export.html">HTML</a>,
107  <a href="export.svg">SVG</a>,
108  <a href="export.ps">PostScript</a>.
109</p>
110
111<!--
112<p> Here are my first libcaca attempts. The first image is,
113<code>cacaview</code>, the libcaca image viewer. Then, two
114screenshots of my first port of an application to libcaca: the <a
115href="http://www.videolan.org/vlc/">VLC</a> media player. The last
116screenshots are from <code>cacafire</code> (the libcaca port of aafire) and
117<code>cacaball</code> (a mini metaballs demo). </p>
118
119<table cellspacing="5" border="0">
120  <tr>
121    <td align="center">
122      <a href="caca-stitch.png"><img alt="cacaview"
123         width="78" height="90"
124         src="tn-caca-stitch.jpeg" /><br /><code>cacaview</code></a>
125    </td>
126    <td align="center">
127      <a href="caca-vlc.png"><img alt="VLC playing the Matrix: Revolutions"
128         width="120" height="74"
129         src="tn-caca-vlc.jpeg" /><br />VLC media player</a>
130    </td>
131    <td align="center">
132      <a href="caca-vlc3.png"><img alt="VLC playing a Dolby trailer"
133         width="120" height="74"
134         src="tn-caca-vlc3.jpeg" /><br />VLC media player</a>
135    </td>
136    <td align="center">
137      <a href="caca-fire.png"><img alt="cacafire"
138         width="120" height="87"
139         src="tn-caca-fire.jpeg" /><br /><code>cacafire</code></a>
140    </td>
141    <td align="center">
142      <a href="caca-ball.png"><img alt="cacaball"
143         width="104" height="90"
144         src="tn-caca-ball.jpeg" /><br /><code>cacaball</code></a>
145    </td>
146  </tr>
147</table>
148
149<p> As with all image processing applications, I needed the obligatory <a
150href="http://www-2.cs.cmu.edu/~chuck/lennapg/">Lenna</a> samples. From
151left to right: the currently in development Floyd-Steinberg dithering, the
152antialiasing introduced in libcaca 0.5, the new renderer in libcaca 0.2, no
153dithering, ordered dithering, random dithering. </p>
154
155<table cellspacing="5" border="0">
156  <tr>
157    <td align="center">
158      <a href="lenna-fs.png"><img alt="Lenna (Floyd-Steinberg)"
159         width="87" height="90"
160         src="tn-lenna-fs.jpeg" /><br />Floyd-Steinberg</a>
161    </td>
162    <td align="center">
163      <a href="lenna-antialias.png"><img alt="Lenna (antialiased)"
164         width="97" height="90"
165         src="tn-lenna-antialias.jpeg" /><br />antialiasing</a>
166    </td>
167    <td align="center">
168      <a href="lenna-new.png"><img alt="Lenna (new renderer)"
169         width="99" height="90"
170         src="tn-lenna-new.jpeg" /><br />new renderer</a>
171    </td>
172    <td align="center">
173      <a href="lenna-nodither.png"><img alt="Lenna (no dithering)"
174         width="99" height="90"
175         src="tn-lenna-nodither.jpeg" /><br />no dithering</a>
176    </td>
177    <td align="center">
178      <a href="lenna-ordered.png"><img alt="Lenna (ordered dithering)"
179         width="99" height="90"
180         src="tn-lenna-ordered.jpeg" /><br />ordered dithering</a>
181    </td>
182    <td align="center">
183      <a href="lenna-random.png"><img alt="Lenna (random dithering)"
184         width="99" height="90"
185         src="tn-lenna-random.jpeg" /><br />random dithering</a>
186    </td>
187  </tr>
188</table>
189
190<p> Here are a few examples of my libcaca patch for libSDL. Once there is a
191libcaca backend for <a href="http://www.libsdl.org">libSDL</a>, any program
192using SDL can automatically benefit from libcaca’s rendering routines. These
193examples show <a href="http://www.frozen-bubble.org/">Frozen Bubble</a>, the
194<a href="http://sabre.cobite.com/">SABRE</a> flight simulator, and the famous
195<a href="http://www.idsoftware.com/games/doom/">Doom</a>. Frozen Bubble is
196fully playable, but SABRE and Doom aren’t much due to the Ctrl and Shift keys
197not being recognized (see the TODO list about that). </p>
198
199<table cellspacing="5" border="0">
200  <tr>
201    <td align="center">
202      <a href="caca-fb.png"><img alt="ASCII art Frozen Bubble"
203         width="120" height="90"
204         src="tn-caca-fb.jpeg" /><br />Frozen Bubble</a>
205    </td>
206    <td align="center">
207      <a href="caca-sabre.png"><img alt="the SABRE flight simulator"
208         width="120" height="90"
209         src="tn-caca-sabre.jpeg" /><br />SABRE</a>
210    </td>
211    <td align="center">
212      <a href="caca-doom.png"><img alt="the Doom splash screen in ASCII art"
213         width="120" height="90"
214         src="tn-caca-doom.jpeg" /><br />Doom splash screen</a>
215    </td>
216    <td align="center">
217      <a href="caca-doom2.png"><img alt="Doom in ASCII art"
218         width="120" height="90"
219         src="tn-caca-doom2.jpeg" /><br />first Doom level</a>
220    </td>
221  </tr>
222</table>
223
224<h2> Download libcaca </h2>
225
226<p> libcaca is already in the Debian sid distribution. Debian woody users or
227sid users in a hurry may use one of the following apt sources: (sorry, sarge
228is not supported yet) </p>
229
230<table class="leftmenu" cellspacing="5" cellpadding="0">
231  <tr>
232    <td class="nowrap" valign="top">
233      <code>
234        deb http://sam.zoy.org/projects/debian woody main<br />
235        deb-src http://sam.zoy.org/projects/debian woody main<br />
236        <br />
237        deb http://sam.zoy.org/projects/debian sid main<br />
238        deb-src http://sam.zoy.org/projects/debian sid main<br />
239      </code>
240    </td>
241  </tr>
242</table>
243
244<p> Users of RPM-based distributions (Red Hat, Fedora, Mandrake) may find RPM
245packages on the <a href="http://yarrow.freshrpms.net/rpm.html?id=552">Fresh
246RPMs</a> page. If no package is available, you are encouraged
247to build packages for your system using this SRPM (<a
248href="libcaca-0.9-1.src.rpm">libcaca-0.9-1.src.rpm</a>, 176KB) and this simple
249command line: </p>
250
251<table class="leftmenu" cellspacing="5" cellpadding="0">
252  <tr>
253    <td class="nowrap" valign="top">
254      <code>rpm -<!>-rebuild libcaca-0.9-1.src.rpm</code>
255    </td>
256  </tr>
257</table>
258
259<p> BSD users should see the <a
260href="http://www.netbsd.org/packages/graphics/libcaca/README.html">NetBSD port
261page</a> and the <a href="http://www.freshports.org/graphics/libcaca/">FreeBSD
262port page</a> (I am not aware of an OpenBSD port yet, but <a
263href="http://news.gw.com/openbsd.ports/15502">this email</a> has
264information on it), Gentoo users may find information on the <a
265href="http://gentoo-portage.com/browse-program.php?program=6273">Gentoo
266portage</a> and Slackware users have a package on <a
267href="http://www.linuxpackages.net/pkg_details.php?id=2144">linuxpackages.net</a>.
268</p>
269
270<h2> Patch for libSDL </h2>
271
272<p> This simple patch was quickly hacked from the AAlib video
273driver. Apply it to the libSDL sources and configuree libSDL with
274<code>-<!>-enable-video-caca</code>. Then use the <code>SDL_VIDEODRIVER</code>
275environment variable to run your SDL programs with libcaca output, for
276instance Frozen Bubble: </p>
277
278<table class="leftmenu" cellspacing="5" cellpadding="0">
279  <tr>
280    <td class="nowrap" valign="top">
281      <code>SDL_VIDEODRIVER=caca frozen-bubble</code>
282    </td>
283  </tr>
284</table>
285
286<p> Download <a href="patch-libsdl1.2-libcaca0.7.diff">patch-libsdl1.2-libcaca0.7.diff</a> (to be used with the Debian unstable SDL sources and libcaca 0.7. </p>
287
288<h2> Patches for VLC, xine, mplayer... </h2>
289
290<p> The libcaca patch for the <a href="http://www.videolan.org/vlc/">VLC</a>
291media player was already applied upstream. Check the CVS version. </p>
292
293<p> There is a work in progress for <a href="http://xine.sf.net/">xine</a>
294called cacaxine (see <a href="http://sourceforge.net/mailarchive/forum.php?thread_id=3605187&amp;forum_id=7131">this email</a>). Zeeshan Ali wrote a
295<a href="http://gstreamer.sf.net/">GStreamer</a> plugin. I am not
296aware of an <a href="http://mplayerhq.hu/">MPlayer</a> patch yet (but you
297should not be using MPlayer anyway, because it sucks). </p>
298
299<h2> Development </h2>
300
301-->
302
303<h2> Why? </h2>
304
305<blockquote><p>
306Que dites-vous ?... C’est inutile ?... Je le sais !
307<br />Mais on ne se bat pas dans l’espoir du succès !
308<br />Non ! non, c’est bien plus beau lorsque c’est inutile !
309<br /><small> -- Edmond Rostand, <i>Cyrano de Bergerac</i> </small>
310</p></blockquote>
311
312<p> I am perfectly aware that <i>libcaca</i> is the waste of time it looks to
313be. No need to tell me about that. I urge you to read Théophile Gautier’s
314preface to <i>Mademoiselle de Maupin</i>, which also gives an excellent
315explanation for the name “libcaca”: </p>
316
317<blockquote><p>
318Il n’y a rien de vraiment beau que ce qui ne peut servir à rien ; tout ce
319qui est utile est laid ; car c’est l’expression de quelque besoin ; et ceux
320de l’homme sont ignobles et dégoûtants, comme sa pauvre et infirme nature. -
321L’endroit le plus utile d’une maison, ce sont les latrines.
322</p></blockquote>
323
324<p> As for the name “libcucul”, please refer to the pioneer of modernist
325Polish fiction: </p>
326
327<blockquote><p>
328Mais contre le cucul, il n’y a pas de refuge. Courez après moi
329si vous voulez, je m’enfuis la gueule entre les mains. Et voilà,
330tralala, Zut à celui qui le lira !
331<br /><small> -- Witold Gombrowicz, <i>Ferdydurke</i> </small>
332</p></blockquote>
333
334<?php $rev = '$Id: index.html 1411 2006-11-16 00:48:51Z sam $';
335      include($_SERVER['DOCUMENT_ROOT'].'/footer.inc'); ?>
336
337</body>
338</html>
Note: See TracBrowser for help on using the repository browser.