Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $im = imagecreatefrompng("http://www.ccpost.esy.es/Witch-Hat-icon.png");
- $colors = imagecolorsforindex($im, $rgb);
- for ($y=0; $y<=128; $y++) {
- for ($x=0; $x<=128; $x++) {
- $rgb = imagecolorat($im,$x,$y);
- $colors = imagecolorsforindex($im, $rgb);
- echo dechex($colors["red"]).dechex($colors["green"]).dechex($colors["blue"])." ";
- }
- echo "\r\n";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement