Sam Hocevar
3b410fdc89
* Fixed old typo that caused qq->height to be uninitialised.
18 years ago
Sam Hocevar
7f5fb19a39
* Set the default dithering mode to Floyd-Steinberg.
18 years ago
Sam Hocevar
7be0932b8f
((`)_.._ ,'-. _..._ _._
* Ooops. Compilation fix. \,' '-._.-\ ' ` .-'
.' / (
/ S | _ _ \
| a \ o o |
; m .-. /
; ', '-.( '')-'
'. | ;-'
\ / /
/ /-._ __, 7 |
\ `\ \`` | | |
\ \_,\ | |_,\
'-`' \_,\
18 years ago
Sam Hocevar
2213100258
* Got rid of the useless cucul_get_fg_color/cucul_get_bg_color functions.
18 years ago
Sam Hocevar
cfadd8b64d
* Removed CUCUL_BACKGROUND, CUCUL_ANTIALIASING and CUCUL_DITHERING
environment variables handling. Replaced that with three per-bitmap
functions: cucul_set_bitmap_antialias(), cucul_set_bitmap_color() and
cucul_set_bitmap_dithering().
* Added cucul_set_bitmap_brightness() and cucul_set_bitmap_contrast()
prototypes (but did not implement them yet).
* Added cucul_set_bitmap_charset() to choose what characters are going
to be used for the bitmap rendering.
* Removed the now useless cucul_get_feature(), cucul_set_feature() etc.
18 years ago
Sam Hocevar
e625e11d52
* Added cucul_get_export_list(). Returns a list of known export formats.
18 years ago
Sam Hocevar
bca049e6d7
* Changed the 2nd argument of cucul_create_export to a string. This way we
can add new exporters without changing the API.
18 years ago
Sam Hocevar
41db7b066a
* Implemented cucul_load() to reload a file that was saved with the
raw driver. I know it is inconsistent to have the loader in libcucul
and the exporter in libcaca but I'll find a way to harmonise that.
18 years ago
Sam Hocevar
3c3e37ca65
* Implemented cucul_invert() to invert a canvas' colours.
18 years ago
Sam Hocevar
af94141959
* Minor addition to the rotate code.
18 years ago
Jean-Yves Lamoureux
604852e3ba
* Ok, invert works. OK OK SAM THAT WAS MY FAULT
AHAHAH _
_._ _..._ .-', _.._(`))
'-. ` ' /-._.-' ',/
) MAIS \ '.
/ _ _ | JE \
| a a / SUIS |
\ .-. ;
'-('' ).-' ,' UN ;
'-; | .'
\ VIEUX \ /
| 7 .__ _.-\ \
| | | ``/ /` /
/,_| | /,_/ /
/,_/ '`-'
POOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOORC!
18 years ago
Jean-Yves Lamoureux
f53bc3937a
* Added bitmap invert routine. It doesn't work well, so don't use it right now. Sam is working hard to correct the strange behaviour.
18 years ago
Sam Hocevar
376404bc80
* Removed spurious prototype.
18 years ago
Sam Hocevar
caa62f3158
* Added missing ASCII characters to cucul_rotate().
18 years ago
Sam Hocevar
6db26f7487
* Made cucul_putchar32() an internal-only function.
* Changed the line, box, ellipsis etc. prototypes so that they use an UTF-8
string instead of a single character as their last argument.
18 years ago
Sam Hocevar
571de1af04
* Renamed cucul_init()/cucul_end() into cucul_create()/cucul_free().
18 years ago
Sam Hocevar
6eb822234b
* Added more characters to the flip/rotate routines.
18 years ago
Sam Hocevar
1d374910e4
* Added cucul_flip(), cucul_flop() and cucul_transform() to perform
operations on canvases.
18 years ago
Sam Hocevar
77f995023d
* Slightly changed header comments.
18 years ago
Sam Hocevar
1c7d39a015
* Optimise cucul_blit() by using memcpy() if there is no mask.
18 years ago
Sam Hocevar
73aad0447c
* Added the cucul_blit() function. It lets us blit various canvas one
onto the other with an optional mask.
18 years ago
Sam Hocevar
f3698cd490
* Fixed an uninitialised structure member.
18 years ago
Sam Hocevar
6b0f180e2f
* Renamed cucul/char.c into cucul/canvas.c because I'm adding stuff there
that is a bit more high level than characters.
18 years ago
Sam Hocevar
2c80bf875b
* Renamed cucul_get_export() to cucul_create_export().
18 years ago
Sam Hocevar
36886a339e
* Removed the cucul_t * argument from cucul_create_bitmap(). It's not needed.
18 years ago
Sam Hocevar
c979bc6eae
* Changed the cucul_init parameter so that it now directly accepts a
canvas size (use cucul_init(0, 0) for the old behaviour).
18 years ago
Sam Hocevar
a20393e0b2
* Removed code that did not need to be duplicated.
18 years ago
Sam Hocevar
5fff7db514
* Use ln(x) = 2 * (t + t^3/3 + t^5/5 + ...) with t = (x-1)/(x+1).
18 years ago
Sam Hocevar
c5f841bb96
* Got rid of cucul_powf(), too complex to implement and no longer used.
18 years ago
Sam Hocevar
b662acdd4e
* Added optional support for CP437 gray blocks in the bitmap renderer.
* Use a custom pow() function for gamma computation.
18 years ago
Sam Hocevar
382e1148ff
* Tried to do something with cucul_powf. It currently sucks.
18 years ago
Sam Hocevar
dcaccc744c
* Got rid of useless parameters in cucul_*_bitmap and cucul_*_sprite.
18 years ago
Sam Hocevar
02ccf6ec3b
* Cosmetic fixes.
18 years ago
Sam Hocevar
bb1cedf858
* Renamed cucul_buffer to cucul_export. Vanilla rum rules.
18 years ago
Sam Hocevar
417b598d8d
* Factorised some charset handling code into a new cucul/charset.c file.
18 years ago
Sam Hocevar
8d698a1158
* Full Unicode support in the SVG exporter.
18 years ago
Sam Hocevar
08627c3231
___
',_`""\ .---,
\ :-""``/` |
Ahaha mais vieux porc !! `;' //`\ /
/ __ | ('.
|_ ./O)\ \ `) \
_/-. ` `"` |`
.-=; ` /
/o o \ ,_, .
L._._;_.-' .
`'-.` '
`. '
'-._. -'
18 years ago
Sam Hocevar
a44f52039e
* Fixed Unicode handling and improved coding style in the SVG exporter.
18 years ago
Sam Hocevar
6a0861c9b3
* Fixed syntax errors in the generated PostScript document if ( ) \ or
Unicode characters are encountered.
18 years ago
Sam Hocevar
e48078c585
* Optimised for speed and space, fixed a few bugs, and improved coding style
in the PS exporter (vieux porc !).
18 years ago
Sam Hocevar
67ee65c720
* Comment clarification.
18 years ago
Sam Hocevar
2b5680bd1d
* Unicode support in the HTML exporter.
18 years ago
Jean-Yves Lamoureux
babd688b59
* Added the SVG exporter sources. SAM IS KOREA KEKEKEK ^^
*p_e_n_i_s_b_i_r_d_p_e_n_i_s_b_i_r_d_*
p______...___________________________p
e____(_..__`'-.,--,__________________e
n_____'-._'-.__`\a\\_________________n
i_________'.___.'_(|_________________i
s____________7____||_________________s
b___________/___.'_|_________________b
i__________/_.-'__,J_________________i
r_________/_________\________________r
d________||___/______;_______________d
*________||__|_______|_______________*
p________`\__\_______|__/__''\_______p
e__________'._\______/.-`____{}|_____e
n___________/\_`;_.-'_________/______n
i___________\_;(((____.--'\_/________i
s_________.(((_____.-;\______________s
b____.--'`_____,;`'.'-;\_____________b
i_taco's____.'____'._.'\\____________i
r_dick_--'_________|__\_|____________r
d__________________\_\,_/____________d
*p_e_n_i_s_b_i_r_d_p_e_n_i_s_b_i_r_d_*
18 years ago
Jean-Yves Lamoureux
d1f6bb6759
* Added preliminary (but working) SVG exporter
18 years ago
Sam Hocevar
9e698966f2
* Replaced all cucul_get_* exporters with a generic cucul_export() function.
* Got rid of static buffers; we now use cucul_free() to free exported
buffers.
* Fixed light background in the ANSI exporter by adding escape sequences for
most terminal emulators.
18 years ago
Sam Hocevar
24a9ef1046
* STATIC char const. AHAHAHAHA.
18 years ago
Jean-Yves Lamoureux
f7354acf01
* Cosmetic changes. AHAHAH I COMMITED IT MYSELF.
18 years ago
Jean-Yves Lamoureux
baa88bc526
* Postscript exporter now kinda works. Paper size to be fixed
18 years ago
Jean-Yves Lamoureux
9071a26bb9
* Added preliminary Postscript (tm) (r) (c) exporter.
18 years ago
Sam Hocevar
1089986b79
* Fixed end of lines in the ANSI exporter (CRLF, not LFCR).
18 years ago