source: www/index.html @ 1825

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