how to generate unique hexcolors ??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
PHPycho
Forum Contributor
Posts: 336
Joined: Fri Jan 06, 2006 12:37 pm

how to generate unique hexcolors ??

Post by PHPycho »

Hello forums !!
I am getting problem in generating unique hexcolors ie #XXXXXX
Can anybody provide me the help regarding generation of unique hexcolors ??
Thanks to all of You in advance..
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

User avatar
PHPycho
Forum Contributor
Posts: 336
Joined: Fri Jan 06, 2006 12:37 pm

Post by PHPycho »

Thanks astions..
Nice Link.
May be useful to many...
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

I'm not sure what context you mean when you say 'unique', but a word of advice: whatever your application is do not use random colours in it. Colour is an important feature for usability and you need to choose them carefully (even if that is through an algoritm).
Post Reply