Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
In the above example the single equality operator "int(pos) == int(120)" should be equivalent to "(int(pos) >= int(120) && int(pos) <= int(120)" however the two output images are different.
output1.png appears correct - or at least what I expect: