andy's php projects
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Script and site usage:
All of the scripts on this site are provided free for non-commerical, personal or non-profit use. If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh? If you wish to use any of these in a commercial system, please refer to the payment plan.


[SOLVED] How to generate random color with fixed luminosity?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Image Functions
View previous topic :: View next topic  
Author Message
V@no
Light Poster


Joined: 10 Apr 2003
Posts: 30

PostPosted: Sat May 27, 2006 1:04 pm    Post subject: [SOLVED] How to generate random color with fixed luminosity? Reply with quote

Hi Andy!
I've been trying to generate a random color with fixed luminosity, but I cant figure out the formula...wondered maybe you know it Wink

I assume the process would be generate RGB value and then change luminosity in it...I got the color generation part, now just needed the formula for luminosity.

I thought I'd ask it here, since you are an expert in such fields Wink Meanwhile I'll go do little more googling, maybe I'll have more luck this time..

Thanks.

[EDIT]
oh...I missed the purpose of rgb2hls() function...that is exactly what I needed! thanks alot for your great classes!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Image Functions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group