Login   Register  
PHP Classes
elePHPant
Icontem

File: example1.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  >  example1.php  >  Download  
File: example1.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:50
Size: 615 bytes
 

Contents

Class file image Download
<?php
/**
* ACO File generator
*
* Adobe Color File (ACO) Generator Class
*
* @package   Adobe Color File (ACO) Generator Class
* @file      example1.php
*
* This example will create a single aco file with 3 colors (Red, Green and Blue) in it!
*/

require_once("aco.class.php");

$aco = new acofile("example1.aco");
$aco->add("Red"25500);
$aco->add("Green"02550);
$aco->add("Blue"00255);
/*
$aco->add(array("Red" => array(255, 0, 0),
                "Green" => array(0, 255, 0),
                "Blue" => array(0, 0, 255)
                ));
*/
$aco->outputAcofile();
?>