Since color3f expects 0-1 values for each channel, it should be:
  float red = ((float)redbyte) / 255.0f;
  etc...

-Lee

-----Original Message-----
From: Sackmunky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 8:30 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Color3b to Color3f


Was is the correct way to convert the values from the byte values to the
float values?

Thanks ,

Zak

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to