$sizex || $aux[1] > $sizey) continue; $color_actual = imagecolorat($imagen, $aux[0], $aux[1]); if ($color_actual == $color || $color_actual == $border) continue; imagesetpixel($imagen, $aux[0], $aux[1], $color); array_push($cola, array($aux[0]-1, $aux[1]), array($aux[0]+1, $aux[1]), array($aux[0], $aux[1]-1), array($aux[0], $aux[1]+1)); } } function int2color ($imagen, $rgb) { $color = imagecolorsforindex($imagen, $rgb); return strtoupper(\'#\'.sprintf(\'%02s%02s%02s\', dechex($color[\'red\']), dechex($color[\'green\']), dechex($color[\'blue\']))); } function color2int ($imagen, $color) { $r = hexdec(substr($color, 1, 2)); $g = hexdec(substr($color, 3, 2)); $b = hexdec(substr($color, 5, 2)); return (($return = imagecolorexact($imagen, $r, $g, $b)) == -1)? imagecolorallocate($imagen, $r, $g, $b) : $return; } function getmicrotime() { list ($micro, $time) = explode(\" \", microtime()); return $time + $micro; } ?>
\" onmousemove=\"mousePos(event);\" onclick=\"document.getElementById(\'pintar\').submit();\">

Colores:

     
     
     
     
     
     
     
Introducir:
Actual:  
Reiniciar imagen
Iván Arias para PHP-Hispano - Generado en segundos