Never mind.
I figured out the (divide by 255) part.
Cheers