We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Converting HSB to RGB Values
Page Index Toggle Pages: 1
Converting HSB to RGB Values (Read 1293 times)
Converting HSB to RGB Values
Nov 10th, 2005, 2:47pm
 
Is there a simple way to covert HSB Values that are defind from 0 to 1, to RGB ( 0 to 255)?


Re: Converting HSB to RGB Values
Reply #1 - Nov 11th, 2005, 3:30pm
 
this should do it:
color c = Color.HSBtoRGB(h, s, b);

(it's a java function, which is why we don't have it documented)
Re: Converting HSB to RGB Values
Reply #2 - Nov 14th, 2005, 9:27pm
 
thanks, for your quick reply Smiley
Page Index Toggle Pages: 1