- Timestamp:
- Nov 1, 2008, 1:45:56 AM (14 years ago)
- Location:
- libcaca/trunk/caca-php/examples
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca-php/examples/cacainfo.php
r3135 r3172 1 1 #!/usr/bin/php5 2 2 <?php 3 /* 4 * cacainfo.php sample program for libcaca php binding 5 * Copyright (c) 2008 Nicolas Vion <nico@yojik.eu> 6 * 7 * This program is free software. It comes without any warranty, to 8 * the extent permitted by applicable law. You can redistribute it 9 * and/or modify it under the terms of the Do What The Fuck You Want 10 * To Public License, Version 2, as published by Sam Hocevar. See 11 * http://sam.zoy.org/wtfpl/COPYING for more details. 12 */ 13 3 14 4 15 //--- Just for fun ---// -
libcaca/trunk/caca-php/examples/cacapig.php
r3135 r3172 1 1 #!/usr/bin/php5 2 2 <?php 3 /* 4 * cacapig.php sample program for libcaca php binding 5 * Copyright (c) 2008 Nicolas Vion <nico@yojik.eu> 6 * 7 * This file is a Php port of "cxx/cpptest.cpp" 8 * which is: 9 * Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org> 10 * All Rights Reserved 11 * 12 * This program is free software. It comes without any warranty, to 13 * the extent permitted by applicable law. You can redistribute it 14 * and/or modify it under the terms of the Do What The Fuck You Want 15 * To Public License, Version 2, as published by Sam Hocevar. See 16 * http://sam.zoy.org/wtfpl/COPYING for more details. 17 */ 18 3 19 4 20 $pig_str = <<<EOT -
libcaca/trunk/caca-php/examples/dithering.php
r3154 r3172 1 1 #!/usr/bin/php5 2 2 <?php 3 /* 4 * dithering.php sample program for libcaca php binding 5 * Copyright (c) 2008 Nicolas Vion <nico@yojik.eu> 6 * 7 * This program is free software. It comes without any warranty, to 8 * the extent permitted by applicable law. You can redistribute it 9 * and/or modify it under the terms of the Do What The Fuck You Want 10 * To Public License, Version 2, as published by Sam Hocevar. See 11 * http://sam.zoy.org/wtfpl/COPYING for more details. 12 */ 13 3 14 $img = imagecreatefrompng(dirname(__FILE__)."/logo-caca.png"); 4 //$img = imagecreatefromgif(dirname(__FILE__)."/logo-caca-idx.gif");5 15 if (!$img) 6 16 die("Can not open image.\n"); -
libcaca/trunk/caca-php/examples/figfont.php
r3135 r3172 1 1 #!/usr/bin/php5 2 2 <?php 3 /* 4 * figfont.php sample program for libcaca php binding 5 * Copyright (c) 2008 Nicolas Vion <nico@yojik.eu> 6 * 7 * This program is free software. It comes without any warranty, to 8 * the extent permitted by applicable law. You can redistribute it 9 * and/or modify it under the terms of the Do What The Fuck You Want 10 * To Public License, Version 2, as published by Sam Hocevar. See 11 * http://sam.zoy.org/wtfpl/COPYING for more details. 12 */ 3 13 4 14 function unistr_to_ords($str, $encoding = 'UTF-8'){ -
libcaca/trunk/caca-php/examples/polyline.php
r3135 r3172 1 1 #!/usr/bin/php5 2 2 <?php 3 /* 4 * polyline.php sample program for libcaca php binding 5 * Copyright (c) 2008 Nicolas Vion <nico@yojik.eu> 6 * 7 * This program is free software. It comes without any warranty, to 8 * the extent permitted by applicable law. You can redistribute it 9 * and/or modify it under the terms of the Do What The Fuck You Want 10 * To Public License, Version 2, as published by Sam Hocevar. See 11 * http://sam.zoy.org/wtfpl/COPYING for more details. 12 */ 3 13 4 14 function transform($tbl, $tx, $ty, $sx, $sy) {
Note: See TracChangeset
for help on using the changeset viewer.