Skip to content

First point in the Bresenham's algorithm may be drawn twice #1

Open
@silensrunners

Description

@silensrunners

Hello!

First of all thanks a lot for the implementations, they are really useful.

I think though, that the call to the CirclePlotPoints made in the Bresenham's algorithm.
CirclePlotPoints(x_centre, y_centre, x, y)
x += 1
needs to be called AFTER increasing "x".
x += 1
CirclePlotPoints(x_centre, y_centre, x, y)
Otherwise, since the function is calling CirclePlotPoints at the beginning it is possible that the same point will be drawn twice.

BR,
Ixent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions