Login   Register  
PHP Classes
elePHPant
Icontem

File: Examples/gradient.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tufan Baris YILDIRIM  >  Image Processor (CSS)  >  Examples/gradient.php  >  Download  
File: Examples/gradient.php
Role: Example script
Content type: text/plain
Description: Gradient Loop Test
Class: Image Processor (CSS)
Draw images defined with CSS like properties
Author: By
Last change:
Date: 4 years ago
Size: 311 bytes
 

Contents

Class file image Download
<?php
  
include '../D3Image.php';
  
$image=new D3Image('file:images/image.png');
  echo 
'<pre>'
  
$newColor='#AC0000';
                         
  while (
$newColor=$image->rgb2Hex($image->brightColor($newColor,1))){
       echo  
'<div style="background:#'.$newColor.'">#'.$newColor.'</div>';
  }

?>