note 52773 deleted from ref.image by tularis

From: Date: Sun, 29 Jun 2008 21:07:33 +0000
Subject: note 52773 deleted from ref.image by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-140946@lists.php.net to get a copy of this message
Note Submitter: Michiel van de Vis ---- After testing this more carefully, i noticed a bug. This can be resolved by replacing the getDeltaArray function by this one: <?php function getDeltaArray($col1, $col2, $size) { $r_range = $col1[0] - $col2[0]; $g_range = $col1[1] - $col2[1]; $b_range = $col1[2] - $col2[2]; $delta_r = $r_range/$size; $delta_g = $g_range/$size; $delta_b = $b_range/$size; return array($delta_r, $delta_g, $delta_b); } ?> Hope this can be of help for anyone.

« previous php.notes (#140946) next »