Changeset 3234 for libcaca


Ignore:
Timestamp:
Nov 2, 2008, 11:45:40 PM (11 years ago)
Author:
nico
Message:
  • Remove \t from content of $moo
  • Change canvas size
  • Fix coordinate of label "Moo!"
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/examples/cacainfo.php

    r3177 r3234  
    1818
    1919$moo = <<<EOT
    20          (__) 
    21          (oo)
     20         (__)
     21         (oo)
    2222   /------\/
    23   / |    ||   
    24  *  /\---/\
    25     ~~   ~~   
     23  / |    || 
     24 *  /\---/\  
     25    ~~   ~~ 
    2626EOT;
    2727
     
    3838                }
    3939        }
     40        caca_set_canvas_size($cv, 18, 6);
    4041        caca_set_color_ansi($cv, CACA_LIGHTGREEN, CACA_DEFAULT);
    41         caca_put_str($cv, 8, 0, "Moo!");
     42        caca_put_str($cv, 14, 0, "Moo!");
    4243        caca_set_color_ansi($cv, CACA_LIGHTRED, CACA_DEFAULT);
    43         caca_put_char($cv, 8, 1, hexdec("2765")); //U+2765
    44         caca_put_char($cv, 10, 1, hexdec("2764")); //U+2764
     44        caca_put_char($cv, 14, 1, hexdec("2765")); //U+2765
     45        caca_put_char($cv, 16, 1, hexdec("2764")); //U+2764
    4546        echo caca_export_string($cv, "utf8");
    4647}
Note: See TracChangeset for help on using the changeset viewer.