Changeset 3172 for libcaca


Ignore:
Timestamp:
Nov 1, 2008, 1:45:56 AM (11 years ago)
Author:
nico
Message:
  • Add license headers in sample programs
Location:
libcaca/trunk/caca-php/examples
Files:
5 edited

Legend:

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

    r3135 r3172  
    11#!/usr/bin/php5
    22<?php
     3/*
     4 *  cacainfo.php      sample program for libcaca php binding
     5 *  Copyright (c) 2008 Nicolas Vion <nico@yojik.eu>
     6 *
     7 *  This program is free software. It comes without any warranty, to
     8 *  the extent permitted by applicable law. You can redistribute it
     9 *  and/or modify it under the terms of the Do What The Fuck You Want
     10 *  To Public License, Version 2, as published by Sam Hocevar. See
     11 *  http://sam.zoy.org/wtfpl/COPYING for more details.
     12 */
     13
    314
    415//--- Just for fun ---//
  • libcaca/trunk/caca-php/examples/cacapig.php

    r3135 r3172  
    11#!/usr/bin/php5
    22<?php
     3/*
     4 *  cacapig.php      sample program for libcaca php binding
     5 *  Copyright (c) 2008 Nicolas Vion <nico@yojik.eu>
     6 *
     7 *  This file is a Php port of "cxx/cpptest.cpp"
     8 *  which is:
     9 *  Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
     10 *                All Rights Reserved
     11 *
     12 *  This program is free software. It comes without any warranty, to
     13 *  the extent permitted by applicable law. You can redistribute it
     14 *  and/or modify it under the terms of the Do What The Fuck You Want
     15 *  To Public License, Version 2, as published by Sam Hocevar. See
     16 *  http://sam.zoy.org/wtfpl/COPYING for more details.
     17 */
     18
    319
    420$pig_str = <<<EOT
  • libcaca/trunk/caca-php/examples/dithering.php

    r3154 r3172  
    11#!/usr/bin/php5
    22<?php
     3/*
     4 *  dithering.php      sample program for libcaca php binding
     5 *  Copyright (c) 2008 Nicolas Vion <nico@yojik.eu>
     6 *
     7 *  This program is free software. It comes without any warranty, to
     8 *  the extent permitted by applicable law. You can redistribute it
     9 *  and/or modify it under the terms of the Do What The Fuck You Want
     10 *  To Public License, Version 2, as published by Sam Hocevar. See
     11 *  http://sam.zoy.org/wtfpl/COPYING for more details.
     12 */
     13
    314$img = imagecreatefrompng(dirname(__FILE__)."/logo-caca.png");
    4 //$img = imagecreatefromgif(dirname(__FILE__)."/logo-caca-idx.gif");
    515if (!$img)
    616        die("Can not open image.\n");
  • libcaca/trunk/caca-php/examples/figfont.php

    r3135 r3172  
    11#!/usr/bin/php5
    22<?php
     3/*
     4 *  figfont.php      sample program for libcaca php binding
     5 *  Copyright (c) 2008 Nicolas Vion <nico@yojik.eu>
     6 *
     7 *  This program is free software. It comes without any warranty, to
     8 *  the extent permitted by applicable law. You can redistribute it
     9 *  and/or modify it under the terms of the Do What The Fuck You Want
     10 *  To Public License, Version 2, as published by Sam Hocevar. See
     11 *  http://sam.zoy.org/wtfpl/COPYING for more details.
     12 */
    313
    414function unistr_to_ords($str, $encoding = 'UTF-8'){       
  • libcaca/trunk/caca-php/examples/polyline.php

    r3135 r3172  
    11#!/usr/bin/php5
    22<?php
     3/*
     4 *  polyline.php      sample program for libcaca php binding
     5 *  Copyright (c) 2008 Nicolas Vion <nico@yojik.eu>
     6 *
     7 *  This program is free software. It comes without any warranty, to
     8 *  the extent permitted by applicable law. You can redistribute it
     9 *  and/or modify it under the terms of the Do What The Fuck You Want
     10 *  To Public License, Version 2, as published by Sam Hocevar. See
     11 *  http://sam.zoy.org/wtfpl/COPYING for more details.
     12 */
    313
    414function transform($tbl, $tx, $ty, $sx, $sy) {
Note: See TracChangeset for help on using the changeset viewer.