Advertisement
SirBaconBitz

Hat Creator

Apr 26th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2. $im = imagecreatefrompng("http://www.ccpost.esy.es/Witch-Hat-icon.png");
  3.  
  4. $colors = imagecolorsforindex($im, $rgb);
  5.  
  6. for ($y=0; $y<=128; $y++) {
  7.    for ($x=0; $x<=128; $x++) {
  8.    $rgb = imagecolorat($im,$x,$y);
  9.    $colors = imagecolorsforindex($im, $rgb);
  10.    echo dechex($colors["red"]).dechex($colors["green"]).dechex($colors["blue"])." ";
  11.    }
  12. echo "\r\n";
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement