RGBA Generator | PHP

January 22nd, 2021 01:34:08 AM

					
<?php //generate 239 rgba colors for codecatch's 239 supported programming languages! //this was used to generate the colors that are used in the pie chart on https://codecatch.net/graphs.php function rgbagenerator() { $count = 239; for ($i=0; $i < $count; $i++) { echo "'rgba(". mt_rand(0,255) . ",". mt_rand(0,255) . ",". mt_rand(0,255) . ",1)',"; echo "<br>"; } } rgbagenerator(); ?>

Featured Posts