浏览代码

* Fix coordinate of label "Moo!"

tags/v0.99.beta17
Nicolas Vion nico 16 年前
父节点
当前提交
7910300a6e
共有 1 个文件被更改,包括 8 次插入7 次删除
  1. +8
    -7
      caca-php/examples/www/cacainfo.php

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

@@ -29,12 +29,12 @@ header('Content-Type: text/html; charset=UTF-8');
function just_for_fun() {

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

$cv = caca_create_canvas(0, 0);
@@ -49,11 +49,12 @@ EOT;
caca_put_attr($cv, $i + 1, $j, $a);
}
}
caca_set_canvas_size($cv, 24, 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, "html3");
}


正在加载...
取消
保存