Location: PHPKode > scripts > Adobe Color File Generator > adobe-color-file-generator/example2.php
<?php
/**
* ACO File generator
*
* Adobe Color File (ACO) Generator Class
*
*
*     __     __)               _____                      ___
*    (, /|  /  ,              (, /     /)           ,    (,   )      /)    /)
*      / | /    ___   _         /  ___(/   _   __            / _   _(/  _ (/
*   ) /  |/  _(_// (_(_(_   ___/__(_) / )_(_(_/ (__(_      _/_(_(_(_(__(/_/ )_
*  (_/   '                /   /                         )   /
*                        (__ /                         (__ /
* ****************************************************************************
* @author    Nima Johari Zadeh <nijoza91-at-gmail-dot-com>
* @package   Adobe Color File (ACO) Generator Class
* @file      example2.php
* @copyright 2007 Nima Johari Zadeh
*
* This example will create an aco file with 256 colors, starting from black to white!
*/

require_once("aco.class.php");

$aco = new acofile("example2.aco");
for($i=0; $i<=255; $i++)
{
    $aco->add(array("rgb($i, $i, $i)" => array($i, $i, $i)));
}
$aco->outputAcofile();
?>
Return current item: Adobe Color File Generator