Ignore:
Timestamp:
Feb 8, 2010, 2:27:22 AM (10 years ago)
Author:
Sam Hocevar
Message:

Large source code cleanup, getting rid of spaces, tabs, and svn keywords.

File:
1 edited

Legend:

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

    r4148 r4333  
    99   *                All Rights Reserved
    1010   *
    11    *  $Id$
    12    *
    1311   *  This program is free software. It comes without any warranty, to
    1412   *  the extent permitted by applicable law. You can redistribute it
     
    1917
    2018if (php_sapi_name() != "cli") {
    21         die("You have to run this program with php-cli!\n");
     19    die("You have to run this program with php-cli!\n");
    2220}
    2321
     
    2523if(!$cv)
    2624{
    27         die("Failed to create canvas\n");
     25    die("Failed to create canvas\n");
    2826}
    2927
     
    3129if(!$dp)
    3230{
    33         die("Failed to create display\n");
     31    die("Failed to create display\n");
    3432}
    3533
     
    3836for($i = 0; $i < 16; $i++)
    3937{
    40         caca_set_color_ansi($cv, CACA_LIGHTGRAY, CACA_BLACK);
    41         caca_put_str($cv, 3, $i + ($i >= 8 ? 3 : 2), "ANSI " . $i);
    42         for($j = 0; $j < 16; $j++)
    43         {
    44                 caca_set_color_ansi($cv, $i, $j);
    45                 caca_put_str($cv, ($j >= 8 ? 13 : 12) + $j * 4, $i + ($i >= 8 ? 3 : 2),
    46                                         "Aaホ");
    47         }
     38    caca_set_color_ansi($cv, CACA_LIGHTGRAY, CACA_BLACK);
     39    caca_put_str($cv, 3, $i + ($i >= 8 ? 3 : 2), "ANSI " . $i);
     40    for($j = 0; $j < 16; $j++)
     41    {
     42        caca_set_color_ansi($cv, $i, $j);
     43        caca_put_str($cv, ($j >= 8 ? 13 : 12) + $j * 4, $i + ($i >= 8 ? 3 : 2),
     44                    "Aaホ");
     45    }
    4846}
    4947
Note: See TracChangeset for help on using the changeset viewer.