您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

16 行
479 B

  1. #!/usr/bin/php5
  2. <?
  3. $img = imagecreatefrompng(dirname(__FILE__)."/logo-caca.png");
  4. //$img = imagecreatefromjpeg("/home/nicolas/images/Clown Fish-mini.jpg");
  5. $canvas = caca_create_canvas(0, 0);
  6. $dither = caca_create_dither(16, 128, 128, 3 * 256, 0x00ff0000, 0x0000ff00, 0x000000ff, 0x00000000);
  7. caca_set_dither_gamma($dither, -1.0);
  8. if (caca_dither_bitmap_gd($canvas, 0, 0, 30, 30, $dither, $img)) {
  9. $dp = caca_create_display($canvas);
  10. caca_refresh_display($dp);
  11. sleep(5);
  12. }