source: www/index.html @ 2339

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