grenerating random text color for text for image php
snippet in php

grenerating random text color for text for image php

user9831

$im     =  imagecreatetruecolor(800,400);
function color_generator($im){
  $color = imagecolorallocate($im,rand(0,500),rand(0,500),rand(0,500));
  return $color;
}
$color = color_generator($im);