[futurebasic] Re: [FB] Wobbling Sphere in OpenGL

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2010 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Tue, 26 Jan 2010 01:24:04 -0500
Jay suggested:

>If the goal is to take just the high byte of the 2-byte value, you
>should do an integer divide by 256, which will yield an integer value
>from 0 to 255.

Jay,

Good call. Changed the floating point divide (from legacy code) and 
went back to integer with 256 and it works fine.

Unfortunately I am still struggling with the CMYK function returning 
erroneous values. Also tried Brian's @test(0) without any difference.

Thanks.

Ken