• Makes a moore neighborhood.

    Area is f(x)=-1+(2r+1)^2 if includeSelf is false or undefined, f(x)=(2r+1)^2 if it is true

    Parameters

    • Optionalradius: number

      Count of how many rings around the center to include defaults to 1.

    • OptionalincludeSelf: boolean

      Should this include the center pixel? Defaults to false.

    Returns Hitbox

    A hitbox shaped like this under defaults:

    XXX
    XOX
    XXX