Menu

#18 piddlePIL-drawPolygon draws pixels outside of outline

open
None
5
2000-12-10
2000-12-10
No

I'm using PIL 1.1.1. The yellow in the example is a bit too light,
perhaps. Here's a better example. The problem is pretty obvious at the
boundary between the green and the yellow polygons:

import piddlePIL, piddle

canvas = piddlePIL.PILCanvas(size = (100, 100))
canvas.drawPolygon([(50, 30), (80, 50), (50, 90), (10, 90), (50, 30)],
fillColor = piddle.green, edgeColor = piddle.black)
canvas.drawPolygon([(90, 10), (50, 30), (80, 50), (50, 90), (90, 90),
(90, 10)], fillColor = piddle.yellow,
edgeColor = piddle.black)
canvas.save(format = "ppm")

Discussion

  • Christopher Lee-Messer

    • priority: 1 --> 5
    • assigned_to: nobody --> clee
    • summary: drawPolygon draws pixels outside of outline --> piddlePIL-drawPolygon draws pixels outside of outline
     
  • Christopher Lee-Messer

    This may be a bug in PIL. Will forward to pil mailing list
    -clee

     
  • michal wallace

    michal wallace - 2005-09-25

    Logged In: YES
    user_id=1971

    Next action:

    duplicate the bug with current piddle/sping/PIL

     

Log in to post a comment.

MongoDB Logo MongoDB