Function interiorIntegerPoints

  • Returns all integer points contained within circle.

    const c = { x:100, y:100, radius:100 };
    for (const pt of Circles.interiorIntegerPoints(c)) {
    ctx.fillRect(pt.x, pt.y, 1, 1);
    }

    Parameters

    Returns IterableIterator<Point>