<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class ColorUtil { private static $colors = array('#FF7F50', '#DC143C', '#9932CC', '#B22222', '#DAA520', '#FF69B4', '#20B2AA', '#9370DB', '#3CB371', '#7B68EE', '#C71585', '#191970', '#FF8C00', '#DB7093', '#CD853F', '#BC8F8F', '#EE82EE', '#8B4513', '#FA8072', '#2E8B57', '#6B8E23', '#FF6347', '#ED3F14', '#4F7FF3', '#6A46BD', '#E9BD6C'); public static function randomColors() { return self::$colors; } public static function randomColor() { goto q3vgX; JNKj0: return $elnS6; goto AP_uL; q3vgX: static $vTPD6 = 0; goto GlXDv; GlXDv: $elnS6 = self::$colors[$vTPD6++ % count(self::$colors)]; goto JNKj0; AP_uL: } public static function pick($DDHup) { $vTPD6 = abs(crc32($DDHup)) % count(self::$colors); return self::$colors[$vTPD6]; } }