/ Published in: PHP
Point the script to an image and get its dominant color.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$r = ($rgb >> 16) & 0xFF; $g = ($rgb >> & 0xFF; $b = $rgb & 0xFF; $rTotal += $r; $gTotal += $g; $bTotal += $b; $total++; } }
URL: http://forums.devnetwork.net/viewtopic.php?t=39594