Answers for "random text color and background color php"

PHP
1

grenerating random text color for text for image php

$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);
Posted by: Guest on April-04-2020

Code answers related to "random text color and background color php"

Browse Popular Code Answers by Language