Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED.76.231.46.128!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: RGB vs HSV Date: Sun, 08 May 2011 21:22:03 -0700 Organization: A noiseless patient Spider Lines: 13 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 9 May 2011 04:22:06 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="76.231.46.128"; logging-data="11358"; mail-complaints-to="abuse@eternal-september.org" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3839 On 5/8/2011 6:58 PM, Lawrence D'Oliveiro wrote: > Wikipedia has formulas for the conversion. Or you can use code like the HSVA > class here > . I found this, the algorithm seems a bit more compact than yours. Might want to give it a look: