I was amazed when I found that Mathematica gives True
for the following code (on 32 bit Windows XP with Mathematica 8.0.1):
Rasterize[Graphics[{RGBColor[0, 0, 0], Disk[]}]] ===
Rasterize[Graphics[{RGBColor[0, 0, 1/257], Disk[]}]]
What is the minimal difference in RGB color values which Mathematica renders and exports as different colors? Is it machine-dependent?
False
on Mathematica 8.0.1 on Mac OS X 10.6 32-bit – Bookcraft1/258
,1/259
,1/260
and so on. What is the minimal difference on your system? – ApprehensibleTrue
In Mma 8.0 WinXP. I guess 256 distinguishable values ... – Six1/511
is when it hitsTrue
– BookcraftExport
to PNG? Do such files identical? – Apprehensible1/511
because of just rounding to the closest/256
? – BolingbrokeRasterize
I think. – Bolingbroke1/255
as I've shown in my answer. – Bookcraft