Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Sesse__
12 hours ago
|
parent
|
context
|
favorite
| on:
Should you normalize RGB values by 255 or 256?
You should multiply by 255.0, optionally add a dither (triangular is okay), and then let the FPU round using its default IEEE 754 round-to-nearest-ties-to-nearest-even mode. None of this crazy 0.5 stuff. :-)
help
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: