brown2005 Posted February 15, 2007 Share Posted February 15, 2007 $image = imagecreate(60, 30); // use white as the background image $bgColor = imagecolorallocate ($image, 255, 255, 255); // the text color is black $textColor = imagecolorallocate ($image, 0, 0, 0); // write the random number imagestring ($image, 5, 5, 8, $rand, $textColor); hi i have the above which prints out a black number for validation but i want it to be #5D7614 color, can anyone help please? Quote Link to comment https://forums.phpfreaks.com/topic/38625-validation-color/ Share on other sites More sharing options...
EagerWolf Posted February 15, 2007 Share Posted February 15, 2007 Use R,G,B = 93, 118, 20 $textColor = imagecolorallocate($image, 93, 118, 20); Hope this helps... Quote Link to comment https://forums.phpfreaks.com/topic/38625-validation-color/#findComment-185370 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.