Changeset 3126 for libcaca/trunk/caca-php/examples
- Timestamp:
- Oct 28, 2008, 3:02:27 AM (12 years ago)
- Location:
- libcaca/trunk/caca-php/examples
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca-php/examples/demo.php
r3110 r3126 1 1 #!/usr/bin/php5 2 <? 2 <?php 3 3 /* 4 4 * demo.php demo for libcaca php binding -
libcaca/trunk/caca-php/examples/dithering.php
r3124 r3126 1 1 #!/usr/bin/php5 2 <? 2 <?php 3 3 4 $img = imagecreatefrompng(dirname(__FILE__)."/logo-caca.png"); 5 if (!$img) 6 die("Can not open image.\n"); 7 4 8 $dither = caca_create_dither_gd($img); 5 9 if (!$dither) -
libcaca/trunk/caca-php/examples/drivers.php
r3114 r3126 1 1 #!/usr/bin/php5 2 <? 3 2 <?php 4 3 5 4 //--- Just for fun ---// … … 45 44 echo "\n"; 46 45 47 echo "Available export modules:\n"; 46 echo "Available import formats:\n"; 47 $list = caca_get_import_list(); 48 foreach($list as $format => $name) 49 echo "* $name ($format)\n"; 50 echo "\n"; 51 52 echo "Available export formats:\n"; 48 53 $list = caca_get_export_list(); 49 foreach($list as $ type=> $name)50 echo "* $name ($ type)\n";54 foreach($list as $format => $name) 55 echo "* $name ($format)\n"; 51 56 echo "\n"; 52 57 -
libcaca/trunk/caca-php/examples/example1.php
r3111 r3126 1 1 #!/usr/bin/php5 2 <? 2 <?php 3 3 4 4 $pig_str = <<<EOT
Note: See TracChangeset
for help on using the changeset viewer.