Login   Register  
PHP Classes
elePHPant
Icontem

File: example2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nima Nima  >  Adobe Color File Generator  >  example2.php  >  Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: Example File
Class: Adobe Color File Generator
Generate an Adobe Color file from a list of colors
Author: By
Last change: .
Date: 2007-04-01 15:52
Size: 455 bytes
 

Contents

Class file image Download
<?php
/**
* ACO File generator
*
* Adobe Color File (ACO) Generator Class
*
*
* @package   Adobe Color File (ACO) Generator Class
* @file      example2.php
*
* 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();
?>