Skip to content

gfx.py - fill_triangle broken for flat topped triangles #2

Closed
@jeffmer

Description

@jeffmer

Lines from 199 in fill_triangle should be:
sa = 0
sb = 0
if y1 == y2:
last = y1
else:
last = y1-1
y = y0
while y <= last:
which is a better translation of the original Adafruit c -code
needs y+=1 at end of loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions