Mutes wrote: > Hello, > I wish to understand how RGB is translated into HSB for the development > of a php script. > All that I'm aware of HSB is that the angle for Hue is defined as an angle > relative to pure red on the color wheel... > So, if anybody could explain, it would be greatly appreciated :) > > Thanks in advance One of my great joys when I was first learning PhotoShop was reading all the great colorspace FAQs and graphics file format FAQs which had come from usenet. Amazing stuff. Anyway - what you seek are color algorithms. Hopefully these will lead you in the right direction: http://www.cs.rit.edu/~ncs/color/t_convert.html http://www.inforamp.net/~poynton/Poynton-colour.html http://groups.google.com/groups?hl=en&rnum=7&selm=graphics/colorspace-faq_996142223%40rtfm.mit.edu Basically, you just have to learn what the math is. HTH! Joe <http://artlung.com/> -- ................... Joe Crawford \\ Web Design & Development ..... mailto:jcrawford at avencom.com \\ http://www.avencom.com .... San Diego \\ CA \\ USA \\ AVENCOM: Set Your Sites Higher