浏览代码

* Remove \t from content of $moo

* Change canvas size
* Fix coordinate of label "Moo!"
tags/v0.99.beta17
Nicolas Vion nico 16 年前
父节点
当前提交
6dafdbfc5a
共有 1 个文件被更改,包括 9 次插入8 次删除
  1. +9
    -8
      caca-php/examples/cacainfo.php

+ 9
- 8
caca-php/examples/cacainfo.php 查看文件

@@ -17,12 +17,12 @@
function just_for_fun() {

$moo = <<<EOT
(__)
(oo)
(__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
/ | ||
* /\---/\
~~ ~~
EOT;

$cv = caca_create_canvas(0, 0);
@@ -37,11 +37,12 @@ EOT;
caca_put_attr($cv, $i + 1, $j, $a);
}
}
caca_set_canvas_size($cv, 18, 6);
caca_set_color_ansi($cv, CACA_LIGHTGREEN, CACA_DEFAULT);
caca_put_str($cv, 8, 0, "Moo!");
caca_put_str($cv, 14, 0, "Moo!");
caca_set_color_ansi($cv, CACA_LIGHTRED, CACA_DEFAULT);
caca_put_char($cv, 8, 1, hexdec("2765")); //U+2765
caca_put_char($cv, 10, 1, hexdec("2764")); //U+2764
caca_put_char($cv, 14, 1, hexdec("2765")); //U+2765
caca_put_char($cv, 16, 1, hexdec("2764")); //U+2764
echo caca_export_string($cv, "utf8");
}


正在加载...
取消
保存